Electronic contract generation method and device, computer equipment and storage medium
By automatically filling business data and user signing information, the problem of low electronic contract generation efficiency in the prior art is solved, and fast and simple electronic contract generation is achieved.
Patent Information
- Application Number
- CN202411896011.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-16
AI Technical Summary
The existing electronic contract generation method requires users to manually fill in a large amount of content, resulting in a long generation time and low efficiency.
By obtaining the electronic contract rich text template, processing the template to generate the electronic contract template, reading business data and automatically filling it into the template, obtaining user signing information and filling it into the contract, and generating the target electronic contract.
No need for user to fill in content manually, significantly improving the efficiency of electronic contract generation and simplifying the generation process.
Smart Images

Figure CN120012725A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an electronic contract generation method, apparatus, computer equipment and storage medium. Background Art
[0002] Electronic contracts, which are generally considered to be agreements that embody civil rights and obligations based on specific digital file formats, are playing an important role in the process of social informatization.
[0003] Compared with traditional paper contracts, electronic contracts have natural advantages in terms of efficiency in drafting, confirming, approving, signing, and sending contracts, as well as consistency, durability, security, timeliness, and cost in the contract circulation process. If the emergence of contracts has made human civilization move towards a contractual society, and eventually evolved into today's complex and orderly commercial society, the emergence of electronic contracts, with its lower contract-making costs and higher contract-building efficiency, will surely reshape the entire human social credit system.
[0004] At present, the generation of electronic contracts usually involves designing an electronic contract template and providing it to users, who then fill in the key information on the electronic contract template and sign it to generate the electronic contract. This method requires users to fill in more content, takes a long time to generate the electronic contract, and is inefficient. Summary of the invention
[0005] Based on this, it is necessary to provide an electronic contract generation method, device, computer equipment and storage medium that can improve the efficiency of electronic contract generation in response to the above technical problems.
[0006] A method for generating an electronic contract, the method comprising:
[0007] Get the rich text template of the electronic contract;
[0008] Processing the rich text template of the electronic contract to obtain the electronic contract template;
[0009] Read the business data, fill the business data into the electronic contract template, and obtain the electronic contract;
[0010] Obtain the user's signature information, fill the user's signature information into the corresponding position of the electronic contract, and generate the target electronic contract.
[0011] In one embodiment, obtaining an electronic contract rich text template includes:
[0012] Display the rich text editing interface, which includes the editing area;
[0013] In response to a user operation in the editing area, obtaining the text content of the electronic contract template according to the user operation;
[0014] Generate an electronic contract rich text template based on the text content of the electronic contract template.
[0015] In one embodiment, the electronic contract rich text template includes multiple variables, and the electronic contract rich text template is processed to obtain the electronic contract template, including:
[0016] Font removal is performed on the electronic contract rich text template to obtain a first electronic contract rich text template;
[0017] Remove special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template;
[0018] Each variable in the second electronic contract rich text template is converted to obtain the designated variable corresponding to each variable, and the electronic contract template is generated.
[0019] In one embodiment, reading business data and filling the business data into an electronic contract template to obtain an electronic contract includes:
[0020] Read business data;
[0021] Parse the business data to obtain at least one key user information;
[0022] Fill each user's key information into the corresponding specified variables to generate an electronic contract.
[0023] In one embodiment, each user's key information is filled into the corresponding designated variable to generate an electronic contract, including:
[0024] Get the type corresponding to each user's key information;
[0025] Associating the same type of user key information to obtain associated user key information;
[0026] The associated user key information is filled into the corresponding specified variables in the form of an array to generate an electronic contract.
[0027] In one embodiment, when the electronic contract includes at least one, before obtaining the user signature information, it also includes: converting the format of each electronic contract into PDF to obtain at least one converted electronic contract;
[0028] Connecting the converted electronic contracts to obtain a first electronic contract;
[0029] Identify the first electronic contract and obtain the signature location area;
[0030] Replace the signature location area with a fixed keyword and specify the font color as the target color to obtain the electronic contract to be signed.
[0031] In one embodiment, obtaining user signature information, filling the user signature information into a corresponding position in the electronic contract, and generating a target electronic contract includes:
[0032] Identify the electronic contract to be signed and obtain at least one fixed keyword;
[0033] Get user signature information;
[0034] Replace the user's signature information with each fixed keyword to generate the target electronic contract.
[0035] An electronic contract generation device, the device comprising:
[0036] The acquisition module is used to obtain the rich text template of the electronic contract;
[0037] A processing module, used for processing the rich text template of the electronic contract to obtain the electronic contract template;
[0038] A reading module is used to read business data and fill the business data into the electronic contract template to obtain an electronic contract;
[0039] The filling module is used to obtain the user's signature information, fill the user's signature information into the corresponding position of the electronic contract, and generate the target electronic contract.
[0040] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0041] Get the rich text template of the electronic contract;
[0042] Processing the rich text template of the electronic contract to obtain the electronic contract template;
[0043] Read the business data, fill the business data into the electronic contract template, and obtain the electronic contract;
[0044] Obtain the user's signature information, fill the user's signature information into the corresponding position of the electronic contract, and generate the target electronic contract.
[0045] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0046] Get the rich text template of the electronic contract;
[0047] Processing the rich text template of the electronic contract to obtain the electronic contract template;
[0048] Read the business data, fill the business data into the electronic contract template, and obtain the electronic contract;
[0049] Obtain the user's signature information, fill the user's signature information into the corresponding position of the electronic contract, and generate the target electronic contract.
[0050] The above-mentioned electronic contract generation method, device, computer equipment and storage medium obtain an electronic contract rich text template; process the electronic contract rich text template to obtain the electronic contract template; read business data, fill the business data into the electronic contract template to obtain the electronic contract; obtain user signature information, fill the user signature information into the corresponding position of the electronic contract, and generate a target electronic contract. Therefore, by processing the electronic contract rich text template to obtain the electronic contract template, and then reading the business data, automatically filling the useful information into the corresponding position of the electronic contract template, after the user signs, a signed target electronic contract is generated. The user does not need to fill in the content of the electronic contract by himself, but only needs to sign, so the generation of the electronic contract can be completed, and the efficiency of the generation of the electronic contract is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 An application environment diagram of an electronic contract generation method in one embodiment;
[0052] Figure 2 A schematic diagram of a flow chart of an electronic contract generation method in one embodiment;
[0053] Figure 3 A flowchart of the steps of obtaining a rich text template of an electronic contract in one embodiment;
[0054] Figure 4 A flowchart of the steps for processing an electronic contract rich text template in one embodiment;
[0055] Figure 5 A schematic diagram of a process flow of a business data filling step in an embodiment;
[0056] Figure 6 A flowchart of a step of filling in key user information in one embodiment;
[0057] Figure 7 The following is a flowchart of the steps of converting the electronic contract format in one embodiment;
[0058] Figure 8 A schematic diagram of a process for generating a target electronic contract in one embodiment;
[0059] Fig. 9 is a structural block diagram of an electronic contract generating device in one embodiment;
[0060] Fig.10 is an internal structure diagram of a computer device in one embodiment;
[0061] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] 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.
[0063] The electronic contract generation method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0064] In one embodiment, the terminal 102 generates a rich text template of an electronic contract and sends it to the server 104. The server 104 processes the rich text template of the electronic contract to obtain the electronic contract template, reads the business data, fills the business data into the electronic contract template, obtains the electronic contract, obtains the user signature information, fills the user signature information into the corresponding position of the electronic contract, and generates the target electronic contract. Finally, the server 104 sends the target electronic contract to the terminal 102.
[0065] In another embodiment, the server 104 obtains an electronic contract rich text template, processes the electronic contract rich text template to obtain the electronic contract template, reads business data, fills the business data into the electronic contract template to obtain the electronic contract, obtains user signature information, fills the user signature information into the corresponding position of the electronic contract, and generates a target electronic contract.
[0066] In one embodiment, Figure 2 As shown, a method for generating an electronic contract is provided, and the method is applied to Figure 1 The terminal or server in the example is used to illustrate, including the following steps:
[0067] Step 202, obtaining the rich text template of the electronic contract.
[0068] Among them, the electronic contract rich text template is an electronic contract template generated by a rich text editor. The electronic contract template is a pre-designed electronic contract document with a specific structure and content, which can be customized according to actual business needs, actual product needs or actual application scenarios.
[0069] Among them, the Multi-function Text Editor, MTE for short, is a text editor that can be embedded in a browser and is WYSIWYG. The text content generated by the rich text editor is in HTML format. The full name of HTML is Hypertext Markup Language, which is a markup language. It includes a series of tags, through which the document format on the network can be unified and the scattered Internet resources can be connected into a logical whole. HTML text is a descriptive text composed of HTML commands, which can describe text, graphics, animations, sounds, tables, links, etc.
[0070] Specifically, the electronic template designer designs the electronic contract template in the rich text editor according to actual business needs, actual product needs or actual application scenarios, and generates an electronic contract rich text template.
[0071] Step 204: Process the rich text template of the electronic contract to obtain the electronic contract template.
[0072] Among them, the electronic contract template here is the processed electronic contract rich text template. After obtaining the electronic contract rich text template, the electronic contract rich text template is processed, and the processing includes but is not limited to format conversion of the electronic contract rich text template, font setting of the electronic contract rich text template, useless data screening of the electronic contract rich text template, keyword variable conversion in the electronic contract rich text template, etc.
[0073] Step 206, read the business data, fill the business data into the electronic contract template, and obtain the electronic contract.
[0074] Among them, business data is data information related to specific business, including business information and user information. Business data related to actual business is read, and the business data is parsed to obtain business information and user information. Key information is extracted from user information and business information to obtain user key information and business key information. The user key information and business key information are filled into fixed positions in the electronic contract template to obtain an electronic contract. The entire process does not require the user to perform filling operations. The relevant business data is directly read, the corresponding business key information and user key information are extracted, and the electronic contract template is filled to obtain the electronic contract.
[0075] Step 208, obtaining the user's signature information, filling the user's signature information into the corresponding position of the electronic contract, and generating the target electronic contract.
[0076] Among them, user signature information is the user's signature on the electronic contract, which indicates recognition, agreement or responsibility. This behavior usually has legal effect and is one of the necessary conditions for the effectiveness of legal documents. Signing is not only a simple signing action, but also a legal act that includes confirmation, agreement and commitment. During the signing process, the signatory needs to confirm that the content of the document is correct and clearly express his or her intentions.
[0077] The user signature information includes the user name. The user signature information is obtained and filled into the corresponding position of the electronic contract to obtain a target electronic contract with legal effect.
[0078] In the above-mentioned electronic contract generation method, the electronic contract rich text template is obtained; the electronic contract rich text template is processed to obtain the electronic contract template; the business data is read and the business data is filled into the electronic contract template to obtain the electronic contract; the user signature information is obtained and the user signature information is filled into the corresponding position of the electronic contract to generate the target electronic contract. Therefore, by processing the electronic contract rich text template to obtain the electronic contract template, and then reading the business data, the useful information is automatically filled into the corresponding position of the electronic contract template, and after the user signs, the signed target electronic contract is generated. The user does not need to fill in the content of the electronic contract by himself, but only needs to sign, so the generation of the electronic contract can be completed, which improves the efficiency of the generation of the electronic contract.
[0079] In one embodiment, Figure 3 As shown, obtain the rich text template of the electronic contract, including:
[0080] Step 302, displaying a rich text editing interface, where the rich text editing interface includes an editing area.
[0081] Step 304, in response to the user operation in the editing area, obtain the text content of the electronic contract template according to the user operation.
[0082] Step 306: Generate an electronic contract rich text template according to the electronic contract template text content.
[0083] Among them, the rich text editing interface is the editing interface in the rich text editor, which is used to display to the electronic contract template personnel. The rich text editing interface includes an editing area, and the electronic contract template personnel perform editing operations in the editing area.
[0084] Specifically, a rich text editor is opened to display a rich text editing interface. The electronic contract template designer performs user operations in the editing area of the rich text editing interface. In response to the user operations, the electronic contract template text content input by the user operation is obtained, and the electronic contract template text content is spliced to obtain the electronic contract rich text template. Among them, the electronic contract template text content includes the electronic contract content and the information that the user needs to fill in. For example, _____(user name) on December 11, 2024 XXXXXX.
[0085] In one embodiment, Figure 4 As shown, the electronic contract rich text template includes multiple variables. The electronic contract rich text template is processed to obtain the electronic contract template, including:
[0086] Step 402: remove fonts from the electronic contract rich text template to obtain a first electronic contract rich text template.
[0087] Step 404: remove special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template.
[0088] Step 406: convert each variable in the second electronic contract rich text template to obtain a designated variable corresponding to each variable, and generate an electronic contract template.
[0089] Among them, the electronic contract rich text template includes multiple variables. The variables here are the quantities that can be changed in the electronic contract rich text template, such as user name, license plate number, user address information, rent, etc. Each variable in the electronic contract rich text template is a quantity that needs to be changed according to the actual business situation, actual business needs or actual application scenarios. It is specially marked by the electronic contract designer when designing the electronic contract rich text template, and needs to be filled in according to the actual situation.
[0090] Specifically, since the format of the electronic contract rich text template is HTML, it is necessary to remove the fonts in the HTML of the electronic contract rich text template to obtain the first electronic contract rich text template after the fonts are removed.
[0091] Furthermore, the invalid content in the first electronic contract rich text template is removed. Specifically, special characters may be identified and removed. Because special characters may not be recognized or may be recognized incorrectly, in order to avoid this situation, the special characters in the first electronic contract rich text template are identified and removed to obtain the second electronic contract rich text template.
[0092] Finally, it is necessary to convert each variable in the second electronic contract rich text template into the corresponding specified variables to generate the electronic contract template. For example, the reserved variable in the electronic contract rich text template: license plate number, the corresponding specified variable is plateNo, the reserved variable in the electronic contract rich text template: rent, the corresponding specified variable is rentAmount.
[0093] For example, the rich text editor generates HTML, such as: <p font=’微软雅黑’> License plate number: {license plate number} \u0000 Rent: {rent} ; First process the HTML, remove the font: font, remove special characters such as some unrecognized characters, and become License plate number: {license plate number} Rent: {rent} ; Then replace the variable with the specified variable, and it becomes: License plate number: {plateNo} Rent: {rentAmount} .
[0094] In one embodiment, Figure 5 As shown, the business data is read and filled into the electronic contract template to obtain the electronic contract, including:
[0095] Step 502: Read business data.
[0096] Step 504: parse the business data to obtain at least one key user information.
[0097] Step 506, fill each user's key information into the corresponding designated variable to generate an electronic contract.
[0098] Among them, business data is data information related to specific business, including business information and user information. Business data related to actual business is read, and the business data is parsed to obtain at least one user key information. The user key information is the user information required in the electronic contract template.
[0099] Furthermore, each user's key information is filled into the corresponding designated variables to generate an electronic contract.
[0100] For example, variable: license plate number, variable: rent, respectively correspond to the specified variables plateNo and rentAmount; when filling, replace plateNo with the actual vehicle license plate number, such as Yu A12345, and replace rentAmount with the actual rent: 3,000 yuan per month.
[0101] In one embodiment, Figure 6 As shown, each user's key information is filled into the corresponding specified variables to generate an electronic contract, including:
[0102] Step 602: Obtain the type corresponding to each user's key information.
[0103] Step 604: associate the same type of user key information to obtain associated user key information.
[0104] Step 606, fill the associated user key information into the corresponding specified variable in the form of an array to generate an electronic contract.
[0105] In order to display all the user key information of the same type, the user key information of the same type may be associated and the associated user key information may be displayed.
[0106] Specifically, the type corresponding to each user key information is determined, the user key information of the same type is classified, and the user key information of the same type is associated to obtain the associated user key information. For example, user name, user gender, user contact information, user address information, etc. can be associated to bind these user key information.
[0107] Furthermore, after obtaining the associated user key information corresponding to each type, the associated user key information corresponding to each type is encapsulated into an array, and filled into the corresponding designated variable in the form of an array to generate an electronic contract. In this way, the user key information of the same type can be displayed in the form of an array for easy viewing by users.
[0108] In one embodiment, Figure 7 As shown, when the electronic contract includes at least one, before obtaining the user's signature information, it also includes:
[0109] Step 702: Convert the format of each electronic contract into PDF to obtain at least one converted electronic contract.
[0110] Step 704, concatenate the converted electronic contracts to obtain a first electronic contract.
[0111] Step 706: Identify the first electronic contract and obtain the signature location area.
[0112] Step 708, replace the signature position area with a fixed keyword, and specify the font color as the target color to obtain the electronic contract to be signed.
[0113] Among them, due to actual business conditions, the same business may include different types of electronic contracts that need to be signed, and the same type of electronic contract may also have multiple electronic contract contents. The same electronic contract has different contents filled in depending on the business. Therefore, an electronic contract can include at least one.
[0114] Specifically, before the user signs, the format of each electronic contract needs to be converted into PDF to obtain the converted electronic contracts, and the format of each converted electronic contract is PDF. Further, the converted electronic contracts are spliced to obtain a spliced first electronic contract, and the number of the first electronic contract is one.
[0115] Among them, it is necessary to identify the signature location area in the first electronic contract for the user to sign, but the signature location area needs to be processed. Specifically, the signature location area in the first electronic contract can be identified, and each location area of the first electronic contract can be identified to determine the signature location area. Furthermore, the signature location area is replaced with a fixed keyword, and the font color is specified as the target color to obtain the electronic contract to be signed. Among them, the target color can be determined according to actual business needs, actual product needs or actual application scenarios, for example, white.
[0116] In one embodiment, Figure 8 As shown, the user signature information is obtained, and the user signature information is filled into the corresponding position of the electronic contract to generate the target electronic contract, including:
[0117] Step 802: Identify the electronic contract to be signed and obtain at least one fixed keyword.
[0118] Step 804, obtaining user signature information.
[0119] Step 806: Replace the user signature information with each fixed keyword to generate a target electronic contract.
[0120] Among them, when filling the user's signature information into the corresponding position, it can specifically be to identify the fixed keywords in the electronic contract to be signed, that is, there is no traditional signature area in the electronic contract to be signed, but the signature area is converted into fixed keywords, and the user's signature information is filled in through the fixed keywords.
[0121] Specifically, since there is more than one location in the electronic contract to be signed where the user needs to sign, at least one fixed keyword in the electronic contract to be signed is identified, the user's signature information is obtained, and the user's signature information is replaced with each fixed keyword to achieve the user's signature of the contract to be signed and generate the target electronic contract.
[0122] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0123] In one embodiment, Fig. 9 As shown, an electronic contract generation device 900 is provided, including: an acquisition module 902, a processing module 904, a reading module 9026 and a filling module 908, wherein:
[0124] The acquisition module 902 is used to acquire the rich text template of the electronic contract.
[0125] The processing module 904 is used to process the electronic contract rich text template to obtain the electronic contract template.
[0126] The reading module 906 is used to read the business data and fill the business data into the electronic contract template to obtain the electronic contract.
[0127] The filling module 908 is used to obtain user signature information, fill the user signature information into the corresponding position of the electronic contract, and generate a target electronic contract.
[0128] In one embodiment, the acquisition module 902 displays a rich text editing interface, which includes an editing area. In response to user operations in the editing area, the text content of the electronic contract template is obtained according to the user operations, and the electronic contract rich text template is generated according to the text content of the electronic contract template.
[0129] In one embodiment, the electronic contract rich text template includes multiple variables. The processing module 904 removes fonts from the electronic contract rich text template to obtain a first electronic contract rich text template, removes special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template, converts each of the variables in the second electronic contract rich text template to obtain a designated variable corresponding to each of the variables, and generates an electronic contract template.
[0130] In one embodiment, the reading module 906 reads the business data, parses the business data, obtains at least one user key information, fills each user key information into a corresponding designated variable, and generates the electronic contract.
[0131] In one embodiment, the filling module 908 obtains the type corresponding to each of the user key information, associates the user key information of the same type to obtain the associated user key information, fills the associated user key information into the corresponding designated variable in the form of an array, and generates the electronic contract.
[0132] In one embodiment, when an electronic contract includes at least one, the electronic contract generation device 900 splices the converted electronic contracts to obtain a first electronic contract, identifies the first electronic contract to obtain a signature position area, replaces the signature position area with a fixed keyword, and specifies the font color as the target color to obtain an electronic contract to be signed.
[0133] In one embodiment, the filling module 908 identifies the electronic contract to be signed, obtains at least one of the fixed keywords, acquires the user signing information, replaces the user signing information with each of the fixed keywords, and generates the target electronic contract.
[0134] For the specific definition of the electronic contract generation device, please refer to the definition of the electronic contract generation method above, which will not be repeated here. Each module in the above electronic contract generation device can be implemented in whole or in part by software, hardware and their combination. The above 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.
[0135] 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.10 As shown. The computer device includes a processor, a memory, a network interface and a database 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 business data. 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, an electronic contract generation method is implemented.
[0136] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. 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, an electronic contract generation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0137] Those skilled in the art will understand that Fig.10 or Fig.11 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.
[0138] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining an electronic contract rich text template; processing the electronic contract rich text template to obtain the electronic contract template; reading business data, filling the business data into the electronic contract template to obtain the electronic contract; obtaining user signature information, filling the user signature information into the corresponding position of the electronic contract, and generating a target electronic contract.
[0139] In one embodiment, when the processor executes the computer program, it also implements the following steps: displaying a rich text editing interface, the rich text editing interface including an editing area; responding to user operations in the editing area, obtaining the text content of the electronic contract template based on the user operations; and generating an electronic contract rich text template based on the text content of the electronic contract template.
[0140] In one embodiment, the electronic contract rich text template includes multiple variables, and the processor also implements the following steps when executing the computer program: removing fonts from the electronic contract rich text template to obtain a first electronic contract rich text template; removing special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template; converting each variable in the second electronic contract rich text template to obtain a specified variable corresponding to each variable, and generating an electronic contract template.
[0141] In one embodiment, when the processor executes the computer program, the following steps are also implemented: reading business data; parsing the business data to obtain at least one user key information; filling each user key information into the corresponding designated variable to generate an electronic contract.
[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the type corresponding to each user key information; associating the user key information of the same type to obtain the associated user key information; filling the associated user key information into the corresponding designated variable in the form of an array to generate an electronic contract.
[0143] In one embodiment, when the electronic contract includes at least one, the processor further implements the following steps when executing the computer program: converting the format of each electronic contract into PDF to obtain at least one converted electronic contract; splicing the converted electronic contracts to obtain a first electronic contract; identifying the first electronic contract to obtain a signature location area; replacing the signature location area with a fixed keyword, and specifying the font color as the target color to obtain an electronic contract to be signed.
[0144] In one embodiment, when the processor executes the computer program, the following steps are also implemented: identifying the electronic contract to be signed to obtain at least one fixed keyword; obtaining user signature information; replacing the user signature information with each fixed keyword to generate a target electronic contract.
[0145] 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 following steps are implemented: obtaining an electronic contract rich text template; processing the electronic contract rich text template to obtain the electronic contract template; reading business data, filling the business data into the electronic contract template to obtain an electronic contract; obtaining user signature information, filling the user signature information into the corresponding position of the electronic contract, and generating a target electronic contract.
[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: displaying a rich text editing interface, the rich text editing interface including an editing area; responding to user operations in the editing area, obtaining the text content of the electronic contract template according to the user operations; and generating an electronic contract rich text template according to the text content of the electronic contract template.
[0147] In one embodiment, the electronic contract rich text template includes multiple variables, and the computer program, when executed by the processor, also implements the following steps: removing fonts from the electronic contract rich text template to obtain a first electronic contract rich text template; removing special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template; converting each variable in the second electronic contract rich text template to obtain a designated variable corresponding to each variable, and generating an electronic contract template.
[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: reading business data; parsing the business data to obtain at least one user key information; filling each user key information into the corresponding designated variable to generate an electronic contract.
[0149] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the type corresponding to each user key information; associating the user key information of the same type to obtain the associated user key information; filling the associated user key information into the corresponding designated variable in the form of an array to generate an electronic contract.
[0150] In one embodiment, when an electronic contract includes at least one, the computer program also implements the following steps when executed by the processor: converting the format of each electronic contract into PDF to obtain at least one converted electronic contract; splicing the converted electronic contracts to obtain a first electronic contract; identifying the first electronic contract to obtain a signature location area; replacing the signature location area with a fixed keyword, and specifying the font color as the target color to obtain an electronic contract to be signed.
[0151] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: identifying the electronic contract to be signed to obtain at least one fixed keyword; obtaining user signature information; replacing the user signature information with each fixed keyword to generate a target electronic contract.
[0152] Those skilled 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 non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0153] 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.
[0154] 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 an electronic contract, the method comprising: Get the rich text template of the electronic contract; Processing the electronic contract rich text template to obtain an electronic contract template; Reading business data, and filling the business data into the electronic contract template to obtain an electronic contract; The user signature information is obtained, and the user signature information is filled into the corresponding position of the electronic contract to generate a target electronic contract.
2. The method according to claim 1, characterized in that The obtaining of the rich text template of the electronic contract includes: Displaying a rich text editing interface, wherein the rich text editing interface includes an editing area; In response to a user operation in the editing area, obtaining the text content of the electronic contract template according to the user operation; The electronic contract rich text template is generated according to the text content of the electronic contract template.
3. The method according to claim 1, characterized in that The electronic contract rich text template includes a plurality of variables, and the electronic contract rich text template is processed to obtain the electronic contract template, including: removing fonts from the electronic contract rich text template to obtain a first electronic contract rich text template; removing special characters from the first electronic contract rich text template to obtain a second electronic contract rich text template; Each of the variables in the second electronic contract rich text template is converted to obtain a designated variable corresponding to each of the variables, and an electronic contract template is generated.
4. The method according to claim 3, characterized in that The reading of the business data and filling the business data into the electronic contract template to obtain the electronic contract includes: Read business data; Parsing the service data to obtain at least one key user information; Fill each user's key information into the corresponding specified variable to generate the electronic contract.
5. The method according to claim 4, characterized in that Filling each user's key information into the corresponding specified variable to generate the electronic contract includes: Obtain the type corresponding to each of the user key information; Associating the same type of user key information to obtain associated user key information; The associated user key information is filled into the corresponding specified variables in the form of an array to generate the electronic contract.
6. The method according to claim 1, characterized in that When the electronic contract includes at least one, before obtaining the user signature information, it also includes: converting the format of each electronic contract into PDF to obtain at least one converted electronic contract; Connecting the converted electronic contracts to obtain a first electronic contract; Identify the first electronic contract and obtain a signature location area; The signature position area is replaced with a fixed keyword, and the font color is specified as a target color to obtain an electronic contract to be signed.
7. The method according to claim 6, characterized in that The obtaining of user signature information, filling the user signature information into a position corresponding to the electronic contract, and generating a target electronic contract includes: Identifying the electronic contract to be signed to obtain at least one fixed keyword; Obtaining the user signing information; The user signature information is replaced with each of the fixed keywords to generate the target electronic contract.
8. An electronic contract generation device, characterized in that: The device comprises: The acquisition module is used to obtain the rich text template of the electronic contract; A processing module, used for processing the electronic contract rich text template to obtain the electronic contract template; A reading module, used for reading business data, filling the business data into the electronic contract template, and obtaining an electronic contract; The filling module is used to obtain user signature information, fill the user signature information into the corresponding position of the electronic contract, and generate a target electronic contract.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: 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.