CN114239521A - Contract template generation method and device, computer equipment and storage medium - Google Patents

Contract template generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114239521A
CN114239521A CN202111387294.4A CN202111387294A CN114239521A CN 114239521 A CN114239521 A CN 114239521A CN 202111387294 A CN202111387294 A CN 202111387294A CN 114239521 A CN114239521 A CN 114239521A
Authority
CN
China
Prior art keywords
contract
template
format
editing
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111387294.4A
Other languages
Chinese (zh)
Inventor
赖永旺
曾欣
谭泳江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111387294.4A priority Critical patent/CN114239521A/en
Publication of CN114239521A publication Critical patent/CN114239521A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a contract template generation method, a contract template generation device, a contract template generation computer device, a contract template storage medium and a contract template computer program product. The method comprises the following steps: displaying a template establishing page of the contract template, and receiving configuration information of the contract template through the template establishing page; generating and displaying a contract editing template according to the configuration information; responding to the editing operation of the contract editing template, and acquiring contract variable information and contract text content added to the contract editing template; and carrying out format conversion on the edited contract editing template to generate a contract template in a preset file format. By adopting the method, a user can configure information by creating a page through a visual template without switching different format editing tools, the contract variable information and the contract text content are directly added into the contract editing template without secondary editing, and the contract templates with various file formats can be generated.

Description

Contract template generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer electronic contract technologies, and in particular, to a method and an apparatus for generating a contract template, a computer device, a storage medium, and a computer program product.
Background
With the development of computer application technology, contract template technology has emerged. The Format of the contract template may include multiple types, and contract templates with different formats may be applied in different application scenarios, for example, a contract template in a PDF Format (Portable Document Format) may be applicable to an offline printing scenario; a contract template in an XSL (eXtensible Stylesheet Language) format or an HTML (HyperText Markup Language) format may be suitable for displaying on a web page in a terminal device such as a mobile phone or a computer.
Conventionally, contract templates of different formats are typically generated by a technician on a platform using a corresponding tool or by manual editing by the technician. However, the contract templates in different formats need to be separately manufactured and maintained, which results in inefficient generation of the contract templates.
Disclosure of Invention
In view of the above, it is necessary to provide a contract template generation method, apparatus, computer device, storage medium, and computer program product capable of improving the efficiency of contract template generation.
In a first aspect, the present application provides a method for generating a contract template. The method comprises the following steps:
displaying a template establishing page of the contract template, and receiving configuration information of the contract template through the template establishing page;
generating and displaying a contract editing template according to the configuration information;
responding to the editing operation of the contract editing template, and acquiring contract variable information and contract text content added to the contract editing template;
and carrying out format conversion on the edited contract editing template to generate a contract template in a preset file format.
In one embodiment, the types of the preset file formats include multiple types;
the format conversion is carried out on the edited contract editing template to generate a contract template in a preset file format, and the method comprises the following steps:
and calling a format conversion tool corresponding to each preset file format to perform format conversion on the edited contract editing template, and generating the contract template corresponding to each preset file format.
In one embodiment, the format conversion of the edited contract editing template to generate the contract template in a preset file format includes:
acquiring the preset file format, wherein the preset file format is obtained by the template establishing page configuration of the contract template;
and calling a format conversion tool corresponding to the preset file format to perform format conversion on the edited contract editing template, and generating the contract template corresponding to the preset file format.
In one embodiment, the predetermined file format includes at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
In one embodiment, the acquiring, in response to the editing operation on the contract editing template, the contract variable information and the contract text content added to the contract editing template includes:
receiving the contract text content currently input to the contract editing template in response to a text content adding operation on the contract editing template;
acquiring contract variable information corresponding to the contract text content from a variable library, and adding the contract variable information to a preset position of the contract text content.
In one embodiment, the acquiring contract variable information corresponding to the contract text content from a variable library, and adding the contract variable information to a preset position of the contract text content includes:
responding to a variable insertion operation of the preset position of the contract text content, and acquiring and displaying candidate variables from the variable library;
and in response to the selection operation of the candidate variable, taking the selected candidate variable as the contract variable information.
In one embodiment, the method further comprises:
receiving contract template updating data for updating the contract variable information and/or the contract text content in response to the contract template updating operation;
and updating the contract template according to the contract template updating data.
In a second aspect, the application further provides a contract template generation device. The device comprises:
the contract template configuration module is used for displaying a template establishing page of the contract template and receiving the configuration information of the contract template through the template establishing page;
the contract editing template generating module is used for generating and displaying a contract editing template according to the configuration information;
the contract editing template editing module is used for responding to the editing operation of the contract editing template and acquiring contract variable information and contract text content added to the contract editing template;
and the contract template generating module is used for carrying out format conversion on the edited contract editing template to generate the contract template in a preset file format.
In one embodiment, the types of the preset file formats include multiple types;
the contract template generation module comprises:
and the template format conversion unit is used for calling a format conversion tool corresponding to each preset file format to convert the format of the edited contract editing template and generate the contract template corresponding to each preset file format.
In one embodiment, the contract template generation module includes:
a file format obtaining unit, configured to obtain the preset file format, where the preset file format is obtained through the template creation page configuration of the contract template;
and the template format conversion unit is used for calling a format conversion tool corresponding to the preset file format to convert the format of the edited contract editing template and generate the contract template corresponding to the preset file format.
In one embodiment, the predetermined file format includes at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
In one embodiment, the contract edit template edit module includes:
a text content adding unit for receiving the contract text content currently input to the contract editing template in response to a text content adding operation to the contract editing template;
and the variable information adding unit is used for acquiring contract variable information corresponding to the contract text content from a variable database and adding the contract variable information to a preset position of the contract text content.
In one embodiment, the variable information adding unit includes:
a candidate variable acquiring subunit, configured to acquire and display a candidate variable from the variable library in response to a variable insertion operation on the preset position of the contract text content;
and the candidate variable selection subunit is used for responding to the selection operation of the candidate variable and taking the selected candidate variable as the contract variable information.
In one embodiment, the apparatus further comprises:
the update data receiving module is used for responding to the update operation of the contract template and receiving contract template update data for updating the contract variable information and/or the contract text content;
and the contract template updating module is used for updating the contract template according to the contract template updating data.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the generation method of the contract template in any embodiment of the first aspect when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method for generating a contract template according to any one of the embodiments of the first aspect.
In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and the computer program realizes the contract template generation method according to any one of the embodiments of the first aspect when executed by a processor.
According to the contract template generation method, the contract template generation device, the contract equipment, the storage medium and the computer program product, the configuration information of the contract template is received through the template creation page of the contract template, the contract editing template is generated and displayed according to the configuration information, and a user can configure the configuration information of the contract template through the visual template creation page without switching different format editing tools. The method comprises the steps of responding to editing operation on the contract editing template, obtaining contract variable information and contract text content added to the contract editing template, carrying out format conversion on the edited contract editing template, and generating the contract template in a preset file format.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a method for generating a contract template in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating the steps in generating a contract template in one embodiment;
FIG. 3 is a schematic flow chart diagram illustrating the steps in editing a contract edit template in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating the contract variable information selection step in one embodiment;
FIG. 5 is a schematic flow chart diagram illustrating the contract template update step in one embodiment;
FIG. 6 is a flowchart illustrating a method for generating a contract template according to another embodiment;
FIG. 6a is a diagram of a template creation page of the contract template in one embodiment;
FIG. 6b is a schematic flow chart diagram illustrating a method for generating a contract template in one embodiment;
FIG. 7 is a block diagram showing the structure of a contract template generation apparatus according to one embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a method for generating a contract template is provided, and this embodiment is illustrated by applying the method to a terminal, it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. The terminal can be but not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart televisions, smart vehicle-mounted equipment and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In this embodiment, the method includes the steps of:
and S102, displaying a template establishing page of the contract template, and receiving the configuration information of the contract template through the template establishing page.
The template creation page can be used for representing a visualization page for creating the contract template, and the configuration information input box which can be but is not limited to comprise at least one contract template is arranged on the template creation page. The configuration information of the contract template may include, but is not limited to, a template name of the contract template, template clause criteria, template type, application device type.
Specifically, when the terminal detects the creation operation of the contract template, a template creation page of the contract template is displayed, and the configuration information input box is displayed in the template creation page of the contract template. And the terminal receives the configuration information of the contract template input by the user through the configuration information input box.
And step S104, generating and displaying a contract editing template according to the configuration information.
Wherein the contract edit template can be used to characterize a contract template framework generated from the configuration information. In one example, the contract edit template can include, but is not limited to, fixed term information for cover pages, flyleaves, signature pages, text content pages of the contract template.
Specifically, the terminal generates a contract edit template of the text content corresponding to the configuration information according to the configuration information of the contract template input by the user, and displays the contract edit template.
And step S106, responding to the editing operation of the contract editing template, and acquiring contract variable information and contract text content added to the contract editing template.
The contract variable information may include, but is not limited to, contract party information and contract product information. For example, the contract variable information may be at least one of principal name information, principal certificate type information, interest rate information of a certain product, and term information of a certain product.
Specifically, the terminal responds to the editing operation of the user on the contract editing template, acquires contract variable information and contract text content input by the user, and adds the contract variable information and the contract text content to the preset position of the contract editing template. The preset position can be a position designated by a user in the contract editing template, and can also be any position of the contract editing template.
And step S108, carrying out format conversion on the edited contract editing template to generate the contract template in a preset file format.
The file format may include, but is not limited to, a portable document PDF format, an extensible stylesheet language XSL format, a hypertext markup language HTML format, a picture JPG format, a plain text TXT format, and a presentation PPT format.
Specifically, format conversion tools corresponding to respective file formats are deployed in advance in the terminal. After acquiring the contract variable information and the contract text content, the terminal may call a format conversion tool corresponding to the preset file format, perform format conversion on the edited contract editing template to which the contract variable information and the contract text content have been added, and generate the contract template in the preset file format. For example, the terminal invokes a PDF format conversion tool to perform format conversion on the edited contract editing template, and generates a contract template in a PDF format that can be directly used for printing.
In the method for generating the contract template, the configuration information of the contract template is received through the template creating page of the contract template, and the contract editing template is generated and displayed according to the configuration information, so that a user can configure the configuration information of the contract template through the visual template creating page without switching different format editing tools. The method comprises the steps of responding to editing operation on the contract editing template, obtaining contract variable information and contract text content added to the contract editing template, carrying out format conversion on the edited contract editing template, and generating the contract template in a preset file format.
In one embodiment, the format of the preset file includes a plurality of formats; step S108, format conversion is carried out on the edited contract editing template, and the contract template under the preset file format is generated, wherein the method comprises the following steps: and calling a format conversion tool corresponding to each preset file format to perform format conversion on the edited contract editing template so as to generate the contract template corresponding to each preset file format.
Specifically, after acquiring the contract variable information and the contract text content, the terminal may respectively invoke a format conversion tool corresponding to each preset file format, and perform format conversion on the edited contract editing template by using each format conversion tool to generate a contract template corresponding to each preset file format. For example, the terminal invokes a PDF format conversion tool, an XSL format conversion tool, and an HTML format conversion tool to perform format conversion on the edited contract editing template, and generates a contract template in a PDF format that can be directly used for printing, a contract template in an XSL format that can be used for page display, and a contract template in an HTML format.
In the embodiment, the format conversion tool corresponding to the preset file format is called by the terminal to perform format conversion on the edited contract editing template, so that the contract template corresponding to each preset file format is generated, the contract templates of various different file formats can be generated at the same time, and the generation efficiency of the contract templates is improved.
In one embodiment, as shown in fig. 2, in step S108, performing format conversion on the edited contract editing template to generate a contract template in a preset file format, including:
step S202, acquiring a preset file format.
And step S204, calling a format conversion tool corresponding to the preset file format to perform format conversion on the edited contract editing template, and generating the contract template in the preset file format.
The preset file format can be one or more formats obtained by configuring a template creation page of a contract template. In this case, the configuration information input box of the template creation page includes a format configuration box. When the terminal detects the triggering operation of the format configuration box by the user, a plurality of candidate file formats can be displayed in a pull-down list/floating page mode and the like. And determining the preset file format as the selected candidate file format.
Specifically, the terminal acquires a preset file format configured on a template creating page of the contract template by the user, and invokes a format conversion tool corresponding to the preset file format to perform format conversion on the edited contract editing template to which the contract variable information and the contract text content are added, so as to generate the contract template in the preset file format.
In the embodiment, the preset file format configured by the user is obtained, the format conversion tool corresponding to the preset file format is called to perform format conversion on the edited contract editing template, and the contract template in the preset file format is generated, so that the user can independently select the required file format, and the generation flexibility of the contract template is improved.
In one embodiment, the predetermined file format includes at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
In one embodiment, as shown in fig. 3, the step S106, in response to the editing operation on the contract editing template, acquiring the contract variable information and the contract text content added to the contract editing template, including:
step S302, responding to the text content adding operation of the same editing template, receiving the currently input contract text content of the same editing template.
Specifically, the terminal receives contract text content currently input by the user in response to a text content adding operation of the user on the contract editing template, and adds and displays the contract text content to the contract editing template.
And step S304, acquiring contract variable information corresponding to the contract text content from the variable library, and adding the contract variable information to a preset position of the contract text content.
The variable library includes a plurality of predefined variables, and the variables may include but are not limited to single variables, logical variables, and list variables.
Single variables may be used to characterize variables that do not require data processing, such as contract party name variables, party certificate type variables, product expiration variables, and the like. In one example, the terminal receives and displays the contracting party name input by the user through the contracting party name variable input area.
The logical variables may be used to characterize the variables resulting from the logical processing of the univariates, such as the product interest rate variables. In one example, the terminal is pre-deployed with interest rate determination logic for a certain product, for example, when the product duration is less than three months, the product interest rate is a; when the product period is longer than three months, the product interest rate is B. The terminal receives a product deadline variable (univariate) input by a user through a product deadline variable (univariate) input area, the terminal performs logic judgment on the product deadline variable (univariate) according to a preset interest rate determination logic, and when the input product deadline is less than three months, the terminal determines that the product interest rate variable (logic variable) is A and displays the A on a page; when the input product term is longer than three months, the terminal determines that the product interest rate variable (logical variable) is B and displays it on the page.
List variables may be used to characterize variables, such as manifest variables, that are displayed on a page in tabular form. In one example, the terminal receives the item name, the item quantity and the item unit price input by the user through the list variable input area, and displays the list variable on the page in the form of the following table:
name of article Number of articles Article unit price
X 1 100
Y 2 3000
Specifically, the terminal acquires contract variable information corresponding to the contract text content in the contract editing template from the variable library, and adds the contract variable information to a preset position of the contract text content. The preset position can be a position designated by a user in the contract editing template, and can also be any position of the contract editing template.
In the embodiment, by responding to the text content adding operation on the contract editing template, receiving and displaying the contract text content currently input by the user to the contract editing template, acquiring the contract variable information corresponding to the contract text content from the variable library, and adding and displaying the contract variable information to the preset position of the contract text content, the generation efficiency of the contract template can be improved.
In one embodiment, as shown in fig. 4, step S304, obtaining contract variable information corresponding to the contract text content from the variable library, and adding the contract variable information to a preset position of the contract text content includes:
in step S402, in response to a variable insertion operation to a preset position of the content of the same text, candidate variables are acquired from the variable library and displayed.
In step S404, in response to the selection operation of the candidate variable, the selected candidate variable is used as contract variable information.
Specifically, the terminal acquires candidate variables from the variable library and displays the candidate variables in the candidate variable selection box in response to a variable insertion operation of a user on a preset position of the contract text content. And the terminal responds to the selection operation of the user in the candidate variable selection frame, and inserts the candidate variable selected by the user as contract variable information into a preset position of the contract text content.
In the embodiment, the candidate variables are acquired and displayed from the variable library by responding to the variable insertion operation of the user on the preset position of the contract text content, and the candidate variables selected by the user are inserted into the preset position of the contract text content as the contract variable information in response to the selection operation of the user on the candidate variables, so that the generation efficiency of the contract template can be improved.
In one embodiment, as shown in FIG. 5, the update process for the contract template includes:
step S502, in response to the update operation of the contract template, receiving contract template update data for updating the contract variable information and/or the contract text content.
And step S504, updating the contract template according to the contract template updating data.
Specifically, the terminal responds to the updating operation of the user on the univariate and/or contract text content in the contract template, receives contract template updating data which is input by the user and used for updating the univariate and/or contract text content, and updates and displays the contract template according to the contract template updating data. And the terminal receives contract template updating data of the logic variable/list variable input by the user, responds to the updating operation of the logic variable/list variable by the user, and updates and displays the contract template according to the contract template updating data.
In the embodiment, the contract template updating data for updating the contract variable information and/or the contract text content is received in response to the updating operation on the contract template, and the contract template is updated according to the contract template updating data, so that the contract template can be directly updated on a visual page, and the updating efficiency of the contract template is improved.
In one embodiment, as shown in fig. 6, there is provided a method for generating a contract template, including:
step S602, a template establishing page of the contract template is displayed, and the configuration information of the contract template is received through the template establishing page.
Specifically, the terminal displays a template creation page of the contract template, and receives the configuration information of the contract template input by the user through a plurality of configuration information input boxes on the template creation page. In one example, as shown in FIG. 6a, the template creation page includes a configuration information default box, a configuration information selection box, and a configuration information input box. The configuration information default box is used for displaying default configuration information automatically generated by the system, such as template numbers and the like. The configuration information selection box is used to provide user selectable configuration information such as base product type, template clause criteria, template type, master-slave contract type, application equipment type, organization number, etc. The configuration information input box is used for receiving configuration information input by a user, such as template names, remarks and the like.
And step S604, generating and displaying a contract editing template according to the configuration information.
Specifically, the terminal receives the configuration information of the contract template input by the user according to a plurality of configuration information input boxes on the template creation page, and generates and displays a contract editing template of text content corresponding to the configuration information.
Step S606, in response to the text content adding operation to the identical editing template, receives the contract text content currently input to the identical editing template.
Specifically, the terminal receives contract text content currently input by the user to the contract editing template in response to a user adding operation to the text content of the contract editing template. In one example, the user can enter the textual content of the approved legal contract into the contract edit template. And the terminal receives and displays the contract text content currently input to the contract editing template by the user, and the format of the contract text content in the contract editing template is consistent with that of the text content in the legal contract without the adjustment of the user.
In step S608, in response to the variable insertion operation to the preset position of the content of the same text, candidate variables are acquired from the variable library and displayed.
Step S610, in response to the selection operation of the candidate variable, taking the selected candidate variable as contract variable information, and adding the contract variable information to a preset position of the contract text content to obtain an edited contract editing template.
Step S612, calling a format conversion tool corresponding to each preset file format to perform format conversion on the edited contract editing template, and generating a contract template corresponding to each preset file format.
Specifically, the terminal responds to a variable insertion operation of a user on a preset position of contract text content, obtains and displays candidate variables from a variable library, responds to a selection operation of the user on the candidate variables, takes the selected candidate variables as contract variable information, and adds the contract variable information to the preset position of the contract text content to obtain an edited contract editing template. And the terminal performs format conversion on the edited contract editing template by using a format conversion tool corresponding to each preset file format to generate a contract template corresponding to each preset file format.
Step S614, in response to the update operation on the contract template, receives contract template update data for updating the contract variable information and/or the contract text content.
And step S616, updating the contract template according to the contract template updating data.
Specifically, the terminal updates the same template in response to an update operation on the same template. The specific contract template updating operation can be implemented by referring to the methods provided in the above embodiments, and is not described herein.
In one example, the template creation page of the contract template can be generated based on a programming language JAVA, using micro service architecture and mainstream page Web front end technology.
In one example, as shown in FIG. 6b, a flow diagram of a method for generating a contract template is provided.
In this embodiment, the configuration information of the contract template is received through the template creation page of the contract template, and the contract editing template is generated and displayed according to the configuration information, so that a user can configure the configuration information of the contract template through the visual template creation page without switching different format editing tools. The method comprises the steps of responding to editing operation on the contract editing template, obtaining contract variable information and contract text content added to the contract editing template, carrying out format conversion on the edited contract editing template, and generating the contract template in a preset file format.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a contract template generation apparatus for implementing the contract template generation method mentioned above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the method, so specific limitations in the embodiment of the device for generating one or more contract templates provided below can be referred to the limitations on the method for generating the contract templates in the foregoing, and details are not repeated here.
In one embodiment, as shown in fig. 7, there is provided a contract template generation apparatus 700, including: a contract template configuration module 702, a contract edit template generation module 704, a contract edit template editing module 704, and a contract template generation module 708, wherein:
a contract template configuration module 702, configured to display a template creation page of the contract template, and receive configuration information of the contract template through the template creation page;
a contract edit template generation module 704, configured to generate and display a contract edit template according to the configuration information;
a contract editing template editing module 706, configured to respond to an editing operation on the contract editing template, and acquire contract variable information and contract text content added to the contract editing template;
the contract template generating module 708 is configured to perform format conversion on the edited contract editing template, and generate a contract template in a preset file format.
In one embodiment, the types of the preset file formats include a plurality of types; the contract template generation module 708 includes: and the template format conversion unit is used for calling a format conversion tool corresponding to each preset file format to convert the format of the edited contract editing template so as to generate the contract template corresponding to each preset file format.
In one embodiment, the contract template generation module 708 includes: the file format acquiring unit is used for acquiring a preset file format, and the preset file format is obtained by the template establishing page configuration of the contract template; and the template format conversion unit is used for calling a format conversion tool corresponding to the preset file format to convert the format of the edited contract editing template and generate the contract template corresponding to the preset file format.
In one embodiment, the predetermined file format includes at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
In one embodiment, the contract edit template edit module 706 includes: a text content adding unit for receiving the contract text content currently input to the contract editing template in response to a text content adding operation to the contract editing template; and the variable information adding unit is used for acquiring contract variable information corresponding to the contract text content from the variable library and adding the contract variable information to a preset position of the contract text content.
In one embodiment, the variable information adding unit includes: a candidate variable acquisition subunit, configured to acquire and display a candidate variable from the variable library in response to a variable insertion operation on a preset position of the content of the identical text; and the candidate variable selection subunit is used for responding to the selection operation of the candidate variable and taking the selected candidate variable as contract variable information.
In one embodiment, the generating apparatus 700 of the contract template further comprises: the contract template updating module is used for updating the contract variable information and/or the contract text content according to the contract variable information and/or the contract text content; and the contract template updating module is used for updating the contract template according to the contract template updating data.
The modules in the contract template generation device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of generating a contract template. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (17)

1. A method for generating a contract template, the method comprising:
displaying a template establishing page of the contract template, and receiving configuration information of the contract template through the template establishing page;
generating and displaying a contract editing template according to the configuration information;
responding to the editing operation of the contract editing template, and acquiring contract variable information and contract text content added to the contract editing template;
and carrying out format conversion on the edited contract editing template to generate a contract template in a preset file format.
2. The method according to claim 1, wherein the preset file format includes a plurality of types;
the format conversion is carried out on the edited contract editing template to generate a contract template in a preset file format, and the method comprises the following steps:
and calling a format conversion tool corresponding to each preset file format to perform format conversion on the edited contract editing template, and generating the contract template corresponding to each preset file format.
3. The method according to claim 1, wherein the format conversion of the edited contract editing template to generate the contract template in a preset file format comprises:
acquiring the preset file format, wherein the preset file format is obtained by the template establishing page configuration of the contract template;
and calling a format conversion tool corresponding to the preset file format to perform format conversion on the edited contract editing template, and generating the contract template corresponding to the preset file format.
4. The method of any one of claims 1 to 3, wherein the predetermined file format comprises at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
5. The method of claim 1, wherein the obtaining of contract variable information and contract text content added to the contract edit template in response to an edit operation on the contract edit template comprises:
receiving the contract text content currently input to the contract editing template in response to a text content adding operation on the contract editing template;
acquiring contract variable information corresponding to the contract text content from a variable library, and adding the contract variable information to a preset position of the contract text content.
6. The method of claim 5, wherein the obtaining contract variable information corresponding to the contract text content from a variable library, and adding the contract variable information to a preset position of the contract text content comprises:
responding to a variable insertion operation of the preset position of the contract text content, and acquiring and displaying candidate variables from the variable library;
and in response to the selection operation of the candidate variable, taking the selected candidate variable as the contract variable information.
7. The method of claim 1, further comprising:
receiving contract template updating data for updating the contract variable information and/or the contract text content in response to the contract template updating operation;
and updating the contract template according to the contract template updating data.
8. An apparatus for generating a contract template, the apparatus comprising:
the contract template configuration module is used for displaying a template establishing page of the contract template and receiving the configuration information of the contract template through the template establishing page;
the contract editing template generating module is used for generating and displaying a contract editing template according to the configuration information;
the contract editing template editing module is used for responding to the editing operation of the contract editing template and acquiring contract variable information and contract text content added to the contract editing template;
and the contract template generating module is used for carrying out format conversion on the edited contract editing template to generate the contract template in a preset file format.
9. The apparatus according to claim 8, wherein the predetermined file format includes a plurality of types;
the contract template generation module comprises:
and the template format conversion unit is used for calling a format conversion tool corresponding to each preset file format to convert the format of the edited contract editing template and generate the contract template corresponding to each preset file format.
10. The apparatus of claim 8, wherein the contract template generation module comprises:
a file format obtaining unit, configured to obtain the preset file format, where the preset file format is obtained through the template creation page configuration of the contract template;
and the template format conversion unit is used for calling a format conversion tool corresponding to the preset file format to convert the format of the edited contract editing template and generate the contract template corresponding to the preset file format.
11. The apparatus of any of claims 8 to 10, wherein the predetermined file format comprises at least one of a portable document format, an extensible stylesheet language format, a hypertext markup language format, a picture format, a plain text format, and a presentation format.
12. The apparatus of claim 8, wherein the contract edit template editing module comprises:
a text content adding unit for receiving the contract text content currently input to the contract editing template in response to a text content adding operation to the contract editing template;
and the variable information adding unit is used for acquiring contract variable information corresponding to the contract text content from a variable database and adding the contract variable information to a preset position of the contract text content.
13. The apparatus of claim 12, wherein the variable information adding unit comprises:
a candidate variable acquiring subunit, configured to acquire and display a candidate variable from the variable library in response to a variable insertion operation on the preset position of the contract text content;
and the candidate variable selection subunit is used for responding to the selection operation of the candidate variable and taking the selected candidate variable as the contract variable information.
14. The apparatus of claim 8, further comprising:
the update data receiving module is used for responding to the update operation of the contract template and receiving contract template update data for updating the contract variable information and/or the contract text content;
and the contract template updating module is used for updating the contract template according to the contract template updating data.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
17. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
CN202111387294.4A 2021-11-22 2021-11-22 Contract template generation method and device, computer equipment and storage medium Pending CN114239521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111387294.4A CN114239521A (en) 2021-11-22 2021-11-22 Contract template generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111387294.4A CN114239521A (en) 2021-11-22 2021-11-22 Contract template generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114239521A true CN114239521A (en) 2022-03-25

Family

ID=80750341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111387294.4A Pending CN114239521A (en) 2021-11-22 2021-11-22 Contract template generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114239521A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166243A (en) * 2023-03-22 2023-05-26 平安银行股份有限公司 Financial product generation method, computer device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166243A (en) * 2023-03-22 2023-05-26 平安银行股份有限公司 Financial product generation method, computer device and storage medium
CN116166243B (en) * 2023-03-22 2023-08-04 平安银行股份有限公司 Financial product generation method, computer device and storage medium

Similar Documents

Publication Publication Date Title
US20080288471A1 (en) Apparatus and method for providing a data marketplace
CN110968996A (en) Document making method, device, equipment and storage medium
CN113611376A (en) Method and device for constructing molecular structure, computer equipment and storage medium
WO2024169747A1 (en) Excel data processing method and apparatus, electronic device, and storage medium
CN112068873B (en) Webpage generation method, device, server and storage medium
CN109614600B (en) Report display method and device and computer storage medium
CN115130442A (en) Report generation method and device, storage medium and computer equipment
CN114239521A (en) Contract template generation method and device, computer equipment and storage medium
TWI505205B (en) Feedback system, feedback method and recording media thereof
CN111597151A (en) File generation method and device, computer equipment and storage medium
CN116910405A (en) Page processing method, device, computer equipment and storage medium
CN116127935A (en) Document creation method, device, electronic equipment and storage medium
CN115905397A (en) Visual display method, device, system and medium for business data
CN114626332A (en) Content display method and device and electronic equipment
CN114036421A (en) Method, device and computer equipment for displaying HTML5 page response time
JP2019021255A (en) Digital publishing system, digital publishing method and computer program
CN112650491A (en) Date selection modal component development method based on Reactnative and related equipment
CN113435847A (en) Information display method and device, electronic equipment and storage medium
CN113918142B (en) Data acquisition task code generation method, device and computer equipment
CN112784564B (en) Document generation method and device
CN109104501B (en) Data synchronization method, device and system
CN110430233B (en) Scene file uploading method and device, computer equipment and storage medium
CN116740208A (en) Poster generation method and device and computer equipment
CN105654269A (en) Characteristic date data node configuration method and device
CN116738953A (en) Report generation method, report generation device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination