CN113033171A - Template creating method, file generating method, device and computer equipment - Google Patents

Template creating method, file generating method, device and computer equipment Download PDF

Info

Publication number
CN113033171A
CN113033171A CN201911253116.5A CN201911253116A CN113033171A CN 113033171 A CN113033171 A CN 113033171A CN 201911253116 A CN201911253116 A CN 201911253116A CN 113033171 A CN113033171 A CN 113033171A
Authority
CN
China
Prior art keywords
template
target
service
preset
elements
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.)
Granted
Application number
CN201911253116.5A
Other languages
Chinese (zh)
Other versions
CN113033171B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911253116.5A priority Critical patent/CN113033171B/en
Publication of CN113033171A publication Critical patent/CN113033171A/en
Application granted granted Critical
Publication of CN113033171B publication Critical patent/CN113033171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a template creating method, a file generating method and device and computer equipment. In the embodiment of the application, the target template element is obtained by determining a standard template constructed by preset template elements and template components corresponding to the preset template elements and editing the preset template elements in the standard template based on the target service. Adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template; the target template is used for generating a service file based on target service data. According to the method and the device, the drafting time of the service file is saved, and the generation efficiency of the service file is greatly improved.

Description

Template creating method, file generating method, device and computer equipment
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a template creating method, a file generating method, a device and computer equipment.
Background
With the rapid development of internet technology, more and more enterprises generate service contracts by utilizing contract templates in order to save contract drafting time and contract approval time and improve contract signing efficiency.
However, the standardized contract template is usually created for a specific service, so the coverage of contract terms in the contract template is relatively limited, when service upgrade or service adjustment occurs, the contract terms in the original contract template cannot be applied to a new service scenario, and in order to avoid that contract risk managers need to re-create the contract template for the current service scenario, the signing efficiency of the service contract is greatly influenced.
Disclosure of Invention
The embodiment of the application provides a template creating method, a file generating method and device and computer equipment, which can save the drafting time of a service file and greatly improve the generating efficiency of the service file.
In a first aspect, an embodiment of the present application provides a template creating method, including:
determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
editing the preset template elements in the standard template based on target service to obtain target template elements;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
In a second aspect, an embodiment of the present application provides a file generation method, including:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
In a third aspect, an embodiment of the present application provides a template creating method, including:
determining a standard template constructed by preset contract terms and template components corresponding to the preset contract terms;
editing the preset contract clauses in the standard template based on a target service to obtain target contract clauses;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a contract file based on the target service data.
In a fourth aspect, an embodiment of the present application provides a file generation method, including:
acquiring a target template corresponding to the target service based on a contract file initiating instruction triggered by a user; the target template adjusts template component generation in a standard template based on target contract terms obtained by presetting contract terms in a target service editing standard template and based on data types related to the target contract terms;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a contract file.
In a fifth aspect, an embodiment of the present application provides a template creating apparatus, including:
the standard template determining module is used for determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
the standard template editing module is used for editing the preset template elements in the standard template based on target service to obtain target template elements;
the target template generation module is used for adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
In a sixth aspect, an embodiment of the present application provides a file generating apparatus, including:
the target template acquisition module is used for acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and the file generation module is used for rendering the target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
In a seventh aspect, an embodiment of the present application provides a computer device, including a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
editing the preset template elements in the standard template based on target service to obtain target template elements;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
In an eighth aspect, embodiments of the present application provide a computer device, including a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
Compared with the prior art, the application can obtain the following technical effects:
the embodiment of the application provides a template creating method, a file generating device and computer equipment. In order to adapt to the diversity and complexity of service requirements, template elements and template components of the standard template are adjusted based on the target service, so that the creation efficiency of the target template meeting the requirements of the target service can be greatly improved. Based on the service requirement, the service data corresponding to the template component of the target template in the target service is rendered to the target template, so that the service file meeting the service requirement can be generated quickly and efficiently, and the generation efficiency of the service file is greatly improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram illustrating one embodiment of a template creation method according to the present application;
FIGS. 2(a) -2 (d) are schematic diagrams illustrating the compilation of a service procurement contract provided according to the present application;
FIG. 3 is a schematic flow chart diagram illustrating one embodiment of a file generation method according to the present application;
FIG. 4 illustrates a schematic flow chart diagram of yet another embodiment of a document generation method provided herein;
5(a) -5 (c) are schematic diagrams illustrating the drafting of a service procurement contract provided according to the present application;
FIG. 6 is a schematic diagram illustrating an embodiment of a template creation apparatus according to the present application;
FIG. 7 is a schematic diagram illustrating an embodiment of a file generation apparatus according to the present application;
FIG. 8 is a schematic structural diagram illustrating a further embodiment of a document creation apparatus according to the present application;
FIG. 9 illustrates a schematic block diagram of one embodiment of a computer device, in accordance with the present application;
FIG. 10 is a schematic diagram illustrating one embodiment of a computer device in accordance with the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
In order to save the drafting time of the service file and improve the generation efficiency of the service file, the inventor provides the technical scheme of the application through a series of researches. In the embodiment of the application, the target template element is obtained by determining a standard template constructed by preset template elements and template components corresponding to the preset template elements and editing the preset template elements in the standard template based on the target service. And adjusting the template components in the standard template based on the service data type related to the target template element to obtain the target template. Therefore, the creating efficiency of the target template meeting the target service requirement can be greatly improved. The method lays a foundation for quickly and efficiently generating the service file meeting the service requirement and improving the drafting efficiency of the service file.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of an embodiment of a template creation method according to an embodiment of the present application. The method may comprise the steps of:
101: and determining a standard template constructed by preset template elements and template components corresponding to the preset template elements.
With the rapid development of internet technology, in order to improve office efficiency, standard user operation is performed to obtain service files meeting service requirements, and more enterprises choose to draft service files by using templates meeting industry standards, such as contract templates, mail templates and the like.
In practical application, the template element is a representation of fixed content in the service file, such as contract clause, mail subject, etc., and the template element may have different representations according to different scenes.
In the process of drafting a service file, universal form components such as blank filling, single selection, multiple selection, date selection and the like are used for replacing the data format of the content part which needs to be customized in the process of using the template. The generic form component may be referred to as a template component, and in practical applications, the template component may be a placeholder in the template, which specifies a data type that can be input by the editable area in the template. The placeholder type may include a general value type, a table type, a single check type, etc., and is not specifically limited herein.
It is understood that the standard template may be a template created based on service requirements before service upgrade or service adjustment, or may be a template created based on current service requirements. Optionally, in some embodiments, the determining a standard template constructed by preset template elements and template components corresponding to the preset template elements may include:
acquiring a preset service file uploaded by a user;
acquiring the preset template elements based on the preset service file;
generating a template component corresponding to the preset template element based on the service data type related to the preset template element;
and creating the standard template based on the preset template elements and the template components.
As an implementation manner, the obtaining the preset template element based on the preset service file may include:
and analyzing the file content of the preset service file to obtain preset template elements related to the target service.
In practical application, the standard template may be obtained by analyzing a preset service file uploaded by a user to obtain a preset template element, and constructing a template component related to the preset template element. The preset service file may be in a Word format, a PDF format, an HTML format, or the like, and is not particularly limited herein.
Taking a contract template as an example, a manager can use a standard contract document meeting the industry standard as a preset contract document, the system can obtain contract clause contents by analyzing the preset contract document, determine the data type of contents needing to be customized in the contract clause contents, create a template component corresponding to the data type, determine the typesetting mode of contract clauses based on the preset contract document or the customized typesetting mode, and determine the positions of the contract clauses and the corresponding template component in the template according to the determined typesetting mode in a template editor, thereby generating the standard template.
102: and editing the preset template elements in the standard template based on target service to obtain target template elements.
In practical applications, the target service may be a service that needs to be supported by a service file conforming to a certain industry in any commercial or non-commercial activity, such as production, financial accounting, statistics, business cooperation, etc., and needs support by a service file such as a form, a contracting document, an incoming and outgoing mail, etc., and is not limited in particular herein.
Aiming at the scene that the target service is adjusted or upgraded, the preset template elements can be edited by the rich text editor on the basis of the standard template, so that the preset template elements can be split, modified, deleted, combined, newly added, moved and other editing operations can be realized, and the target template elements meeting the target service requirements can be obtained.
103: and adjusting the template components in the standard template based on the service data type related to the target template element to obtain the target template.
The target template is used for generating a service file based on target service data.
And adjusting corresponding template components, such as moving, deleting, adding and the like, based on the data type of the data to be adjusted in the target template element to obtain the target template matched with the target service requirement.
As an optional implementation manner, the editing the preset template element in the standard template, and obtaining the target template element may include:
determining template elements to be edited in the preset template elements based on the target service;
and triggering the editing operation aiming at the template element to be edited to obtain a target template element.
Optionally, in some embodiments, the triggering the editing operation on the template element to be edited may include:
activating a rich text editor corresponding to the template element to be edited;
and obtaining the target template element based on one or more operations of deleting, splitting, merging or modifying the template element to be edited by the rich text editor.
Alternatively, editing of the preset template elements may be implemented using a template editor that supports rich text editing. In practical application, each template element may correspond to one rich text edit box, and when any preset template element is determined to be a template element to be edited, the rich text edit box corresponding to the template element to be edited is triggered, so that the editing operation on the preset template element is realized in the rich text edit box.
As an optional implementation manner, the obtaining the target template element based on the rich text editor performing one or more of deleting, splitting, merging, or modifying on the template element to be edited may include:
moving the template element split character corresponding to the template element to be edited to a target split position of the template element to be edited based on the rich text editor;
and splitting the template element to be edited at the target splitting position to obtain the target template element.
The template element splitting may be configured with a buoy or an identification button or the like at any position of the target template element, which is not specifically limited herein, and the user may activate the rich text editor corresponding to the target template element by triggering the buoy or the button, so as to implement editing operation on the target template element.
After moving the template element splitter to the target splitting position, if the position is located at the middle position of any paragraph of the template elements to be edited, the paragraph is split into two target template elements at the position; if the position is located at the start or end position of any paragraph of the template elements to be edited, the paragraph and the adjacent paragraphs are split into two target template elements, which is not specifically limited herein.
As an achievable real-time manner, the moving, based on the rich text editor, the template element splitter corresponding to the template element to be edited to the target splitting position of the template element to be edited may include:
determining a template element split character corresponding to the template element to be edited;
recording a first splitting position of the identifier of the mobile template element in the template element to be edited;
and when the template element identifier is detected to move to a second splitting position of the template element to be edited, combining two template elements in front of and behind the first splitting position, and taking the second splitting position as the target splitting position.
When an actual user moves the template element split symbol, the template element split symbol may move to an error position or cannot move to a target position at one time, so that the template element split symbol is in the same splitting operation process, for the convenience of correct splitting of the user, the first splitting position before moving and the second splitting position after moving can be recorded, when the template element split symbol is detected to have the first splitting position to move to the second splitting position in the same splitting operation process, the first splitting position can be split to obtain two templates, the two templates are automatically merged, and the second splitting position after moving is used as the target splitting position to re-split the template element to be edited.
The splitting operation process of the actual target template element includes, but is not limited to, the above manner, and may be set according to an actual situation and a user requirement, which is not specifically limited herein.
Optionally, in some embodiments, the editing the preset template element in the standard template to obtain the target template element may include:
determining new template elements and target positions of the new template elements in the standard template based on the target service;
and adding the newly added template element to the target position to obtain the target template element.
After determining the newly added template element, the user may drag the newly added template element to the corresponding target position, at this time, position information of two template elements before and after the target position is detected, and the newly added template element is released and added between the two template elements to obtain the target template element.
In practical applications, when a new contract term needs to be added to the standard contract template, the newly added contract term may be added to the corresponding term position, and at this time, the term number may also be automatically adjusted correspondingly, for example, after a contract term is newly added before the term 5 of the standard contract template, the original term 5 is automatically adjusted to the term 6, and the subsequent term numbers are sequentially incremented, which is not specifically limited herein.
As an optional implementation, the adjusting the template component in the standard template based on the service data related to the target template element, and obtaining the target template may include:
determining the service data to be adjusted related to the target template element;
and deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element based on the data type of the service data to be adjusted to obtain the target template.
As an optional implementation manner, the deleting, adding, or moving a template component corresponding to the data type to a corresponding position of the target template element based on the data type of the service data to be adjusted, and obtaining the target template includes:
determining a template component to be added and a target adding position of the template component;
and adding the template component to the target adding position based on the moving operation of the user on the template component to be added.
In practical application, template components in the standard contract template may be numbered, and the template components may be automatically numbered according to an appearance sequence or an addition sequence of the template components, and after a final target contract term is determined, the corresponding template components are adjusted according to a data type related to the target contract term, for example, the template components may be added, moved, deleted, and the like.
As an optional implementation manner, the deleting, adding, or moving a template component corresponding to the data type to a corresponding position of the target template element based on the data type of the service data to be adjusted, and obtaining the target template may include:
detecting whether a new service data type exists in the service data to be adjusted;
if yes, generating a template component corresponding to the newly added service data type;
deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element to obtain the target template.
In practical application, before a standard template is generated, a corresponding template component is generated according to the type of the data type related to the preset template element, the template component is added to the data type corresponding to the preset template element, when the service data to be adjusted is the existing data type in the template component created by the standard template, the template component can be added to the corresponding template element in a pulling or pasting mode, if the data type of the service data to be adjusted is the new data type, the template component corresponding to the data type needs to be created, and therefore the target template is obtained.
As an optional implementation manner, the creating a standard template based on the preset template element and the template component corresponding to the preset template element may include:
adding the preset template elements into a basic template based on rich text layout according to a preset typesetting format;
and adding the template component to the corresponding position in the basic template based on the service data type related to the preset template element to obtain the standard template.
Optionally, a basic template based on the rich text layout may be generated by using a template editor having a rich text editing function, where the basic template may be a blank template, and when a standard template is created based on preset template elements and template components corresponding to the preset template elements, each preset template element is correspondingly added to a corresponding rich text editing frame, so that flexible typesetting and adjustment editing of the preset template elements can be realized according to preset typesetting requirements and service adjustment requirements, and no specific limitation is made herein.
As an optional implementation manner, the adding the template component to the corresponding position in the base template based on the service data type referred by the preset template element, and obtaining the standard template may include:
adding the template component to a corresponding position in the basic template based on the service data type related to the preset template element;
generating a directory navigation for the base template;
and setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain the standard template.
As an optional implementation manner, the directory navigation at least includes template element directory navigation and template component directory navigation;
and the directory navigation is displayed in a preset navigation bar based on navigation trigger operation.
After the directory navigation is displayed in the preset navigation bar based on the navigation triggering operation, the directory navigation can be suspended at the position corresponding to the top end of the template editing interface, when a triggering event of a user on any target template element or any template component in the template editing interface is detected, for example, selection operation such as clicking and the like is performed, the target template element or the template component corresponding to the triggering event and the corresponding target suspension position are determined, and at the moment, the directory navigation is positioned at the target suspension position to be suspended and is located in a parameter setting area of the target template element or the template component, so that the user can modify or set the attribute parameters.
In order to facilitate the standard template editing, the editing control may be displayed in a preset area in a directory navigation mode or any other mode after the user triggers the editing operation, for example, based on the navigation triggering operation of the user, the editing control is always suspended in the right area of the standard template in a directory navigation mode, and the relative position of the editing control and the template element or template component to be adjusted in the base template is adjusted. According to the actual editing requirement, corresponding element setting controls and component setting controls can be generated for preset template elements and template components in the standard template, and no specific limitation is made herein. In order to facilitate user operation, after a user triggers an element setting control, directory navigation can be quickly positioned to a preset template element in a left standard template and an attribute setting area of the preset template element is expanded; after the component setting control is positioned, the template component in the left standard template can be quickly positioned and the attribute setting area of the template component is expanded so that a user can set any preset template element and template component attribute parameter, and the setting can be specifically carried out according to actual requirements without specific limitation.
As an optional implementation manner, the setting the preset template parameter and the attribute parameter of the template component based on the directory navigation, and obtaining the standard template may include:
triggering the directory navigation to display a template element setting area for a preset template element based on a selection operation for element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the directory navigation to display a component setting area for the template component based on a selection operation for the component setting;
and in the component setting area, setting the component type of the template component to obtain the standard template.
Optionally, in some embodiments, the element attribute parameters may include:
one or more of a tag parameter, an edit status parameter, a risk cue parameter, and an element association parameter.
Taking a contract template as an example, an editable state of the clause can be set in a contract clause setting area, if the clause is not editable, a risk prompt can be set to prompt a user of a possible risk of using the contract, a choice of clause types (such as honest, administration, IP, confidentiality, fulfillment, and the like), a clause benefit tendency (such as my is favorable, an opposite side is favorable, and the like), and an association attribute (such as a mutual exclusion relationship, a dependency relationship, and the like) between the clause and other clauses can be set according to actual requirements without specific limitation.
In the component setting area, the created template component may be edited, for example, the component type (such as single selection, blank filling, date, time, and the like) is set or modified, and the parameters such as the prompt information of the template component, whether to participate in the number, and the like may also be input for setting, which is not specifically limited herein.
In order to improve the user experience, as an optional implementation, the target element is associated with preset information. For example, in the contract template, a correlation relationship may be established between the common keywords or phrases involved in the contract terms and preset information, for example, when content according to the "XX term" or the "XX criterion" appears in the contract terms, a hyperlink may be established between the information and the actual storage location of the "XX term" or the "XX criterion", so that when a user views the contract document, the user may jump to the page of the "XX term" or the "XX criterion" to view specific content thereof by triggering the hyperlink. Certainly, remark information may also be set at the bottom of the target template page, and an association relationship is established between the remark information and preset information, which is not specifically limited herein and may be set according to actual requirements.
As an optional implementation manner, the adjusting template components in the standard template based on the service data type referred by the target template element, and obtaining the target template may include:
adjusting template components in the standard template based on the type of service data to which the target template element relates;
generating a directory navigation for the standard template;
and adjusting the element parameters of the target template and the attribute parameters of the template component based on the directory navigation to obtain the target template.
After the preset template elements and the template components in the standard template are edited, the target template element parameters and the attribute parameters of the template components can be adjusted according to actual requirements, so that the target template matched with the service requirements is obtained.
In practical application, the technical solution of the present application may be applicable to an application scenario of creating a contract template, and therefore, as an optional implementation manner, the technical solution of the present application further provides a template creating method, which may include:
determining a standard template constructed by preset contract terms and template components corresponding to the preset contract terms;
editing the preset contract clauses in the standard template based on a target service to obtain target contract clauses;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a contract file based on the target service data.
Further, it can be understood that the technical solution of the embodiment of the present application is not limited to the above application scenarios, and is also applicable to service files related to information management in any scenario, for example, electronic contracts, electronic forms, electronic mails, and the like, which are not specifically limited herein.
Fig. 2(a) is a schematic diagram illustrating editing of a standard template of a service purchase contract, in which a floating navigation bar generated for the standard template contract is floated in a right area of the standard template contract, and attribute parameters (such as numbers, risk prompts, clause types, benefit tendencies, association settings, and the like) of contract clauses and attribute parameters (such as component types, option values, prompt information, and the like (not shown)) of template components in the standard template contract can be set through the floating navigation bar.
Fig. 2(b) is a schematic diagram of an editing operation of a contract term in a standard template for a service procurement contract, for example, a splitting operation of a corresponding rich text edit box for 3.1 "payment settlement" may be triggered, and after the term is split, two terms, i.e., 3.1 and 3.2, may be used. In the editing state, the clause may be further subjected to editing operations such as deleting, modifying, adding, splitting (splitting a single clause into multiple clauses), merging upwards (merging a currently edited clause and a last clause into a single clause), setting a font paragraph, and typesetting, which are not specifically limited herein.
The navigation floating bar can automatically position the edited clause, and when the user selects the clause 3.1, the floating navigation bar is automatically positioned at the position corresponding to the clause so as to be convenient for correspondingly modifying and setting the attribute parameters of the modified target contract clause.
In the embodiment of the application, the edited target contract clauses can be filed and stored in the clause library, so that the user can conveniently retrieve and use the target contract clauses through identification information such as the clause types of the contracts when drafting the contracts.
As shown in fig. 2(c), the division operation diagram of a contract term in the standard template for a service purchase contract may be obtained, for example, by dragging a term buoy (i.e., arrow buoy at the upper left side of the term) to a division position, releasing the term buoy at the division position, and then setting the buoy at the upper left side of the term corresponding to the division position, so as to divide and obtain a new term. After the division, the clause 14.3 is divided from the clause 14 to become a new clause 15, and any of the editing operations described above can be performed on the newly divided clause 15.
Fig. 2(d) is a schematic diagram of an adding operation of a certain template component in a standard template for a service purchase contract, for example, in clause 2.4, the added template component is included, the data type of the template component is the same as that of a created template component "005 filling", and after a release event of a dragging or copying operation is monitored through the dragging operation or the copying operation, the "005 filling" is copied to a corresponding position in clause 2.4, and the adjustment of the template component encoding is performed according to the position of the newly added template component.
It is understood that, in the embodiment of the present application, including but not limited to the template editing manners shown in fig. 2(a) -2 (d), the template editing manners may also be adaptively set according to actual template editing requirements, and are not specifically limited herein.
Meanwhile, the template editing implementation manner in the embodiment of the present application may also be applicable to any editable stage, such as file drafting, and is not specifically limited herein.
In the embodiment of the application, when a scene such as service upgrade or service adjustment occurs or an original standard template needs to be adjusted, a target template meeting service requirements can be obtained quickly and efficiently by flexibly and variously editing and setting parameters of a preset template component and a template component in the standard template. Therefore, the creating efficiency of the target template meeting the target service requirement is greatly improved, and a foundation is laid for quickly and efficiently generating the service file meeting the service requirement and improving the drafting efficiency of the service file.
Fig. 3 is a flowchart of an embodiment of a file generation method according to an embodiment of the present application. The method may comprise the steps of:
301: and acquiring a target template corresponding to the target service based on a service file initiating instruction triggered by the user.
And the target template adjusts the generation of template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements.
In practical application, the target templates are uniformly generated by a manager and stored in the system platform, when a user needs to generate a service file based on the target templates, a service file initiation instruction can be triggered in the system platform to obtain the target templates corresponding to the target services, for example, the service file initiation instruction can be sent after the administrator receives the instruction, or the user obtains the obtaining authority of the target templates based on the initiation instruction, the target templates are obtained in the system based on keyword retrieval of the target services, and the setting can be specifically performed according to actual situations.
302: and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
As an implementation manner, the rendering target service data in the target service corresponding to the template component in the target template into the target template, and generating the service file may include:
determining a current service event of the target service;
acquiring service data of at least one template component in the target template respectively corresponding to the service event based on service file generation operation corresponding to the service event;
adding the target service data to the target template according to the data formats respectively corresponding to the at least one template component;
and rendering the target template according to a preset file format to obtain the service file.
The format of the data is defined in the template components in the actual target template, so when the service data is rendered into the target template, the data format of the template component corresponding to the service data and the data format of the template component corresponding to the service data are determined at first, and the service data is added into the target template according to the data format of the template component. For example, if the target template defines 005 template component font as regular font, five font, height 22mm and service data as "XXX company", the "XXX company" is rendered into 005 template component according to the data format defined above.
In practical applications, the service data of the target service may be obtained through the upstream service system platform, for example, when a contracting instrument event occurs, the service data of the current contracting instrument may be obtained from the upstream contracting instrument platform, or may be obtained from locally stored service data, which is not specifically limited herein.
The service file may be in a PDF format, a Word format, an excell format, an HTML format, or the like according to a preset rendering format, which is not specifically limited herein. It can be understood that in the embodiment of the application, generation of service files under various service scenes can be provided, so that service processing requirements of various industries can be met.
In practical application, the technical solution of the present application may be applicable to an application scenario in which a contract document is drafted, and therefore, as an optional implementation manner, the technical solution of the present application further provides a document generating method, which may include:
acquiring a target template corresponding to the target service based on a contract file initiating instruction triggered by a user; the target template adjusts template component generation in a standard template based on target contract terms obtained by presetting contract terms in a target service editing standard template and based on data types related to the target contract terms;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a contract file.
In the embodiment of the application, the service data of the target service is rendered into the target template corresponding to the target service, and the service data is replaced with the corresponding template component to obtain the template example of the target service, so that the drafting efficiency of the service file is greatly improved. In practical application, the template instance is only the running template data, and the template instance is further rendered into the service file in the preset file format, so that the generated service file meeting the service requirement is quickly and efficiently realized.
Since the target templates are uniformly created by the administrator, when the target service range is wide, the service requirements may be diversified based on different clients, or the target service corresponding to the target template has a time limit and other scenes, it may be difficult for the target template to cover a more complicated service requirement.
Fig. 4 is a flowchart of an embodiment of a file generation method according to an embodiment of the present application. The method may comprise the steps of:
401: and acquiring a target template corresponding to the target service based on a service file initiating instruction triggered by the user.
And the target template adjusts the generation of template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements.
402: and rendering the target service data corresponding to the template component in the target template in the target service to the target template to obtain a drafting template.
403: and adjusting the drafting template to generate the service file based on the target service requirement.
In practical application, after obtaining the target template, the user can also adaptively modify and edit the target template elements and the corresponding template components in the target template according to actual service requirements. It should be noted that the editing and modifying process needs to be performed based on the parameter attributes set by the target template elements and template components in the target template, for example, when the editing attribute of a certain target template element is set to be in a non-editable state, the user can modify and edit the target template element, and if the editing attribute is in an editable state, any template editing method described in the foregoing embodiments can be performed to further modify and edit the target template element and template components, so as to obtain a drafting template of a drafting file suitable for the target service requirement, thereby generating a service file based on the drafting template.
It can be understood that a user may generate a service file by adjusting the drafting template after rendering the service data, or may preferentially adjust the target template based on a target service requirement and perform the rendering of the service data, thereby generating the service file.
As an optional implementation manner, the adjusting the drafting template generation service file based on the target service requirement may include:
based on the target service requirement, adjusting the drafting template to obtain an adjusting template;
determining whether the adjustment template meets the target service requirement;
if so, generating the service file based on the adjusting template;
if not, continuing to adjust the adjusting template until the adjusting template meets the target service requirement.
After the user drafts, or the target template may be modified and adjusted at multiple places, so that the user can check the difference between the latest adjusted template and the target template in a difference comparison preview manner to determine whether the current template meets the target service requirement. Thus, further in some embodiments, the determining whether the adjustment template meets the target service requirement may comprise:
triggering a difference comparison preview between the adjusting template and the drafting template;
and detecting whether the adjusting template meets the target service requirement or not based on the difference comparison preview.
As an optional implementation manner, the adjusting the drafting template to obtain an adjusting template based on the target service requirement may include:
and editing the target template elements in the editable state in the drafting template based on the target service requirement to obtain the adjusting template.
As an optional implementation manner, the adjusting the drafting template to obtain an adjusting template based on the target service requirement may include:
determining new template elements to be added based on the target service requirement;
and adding the newly added template elements to the corresponding positions of the drafting template to obtain the adjusting template.
As an implementation manner, the determining, based on the target service requirement, a newly added template element to be added may include:
determining keywords corresponding to newly added template elements to be added based on the target service requirement;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
As an implementable embodiment, the retrieving the new template element from the preset template element library based on the keyword may include:
displaying the template element retrieval area in a preset navigation bar based on display operation aiming at the template element retrieval area;
inputting keywords corresponding to the newly added template elements in the template element retrieval area;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
As an optional implementation manner, the adjusting the drafting template to obtain an adjusting template based on the target service requirement may include:
displaying the directory navigation in a preset navigation bar based on a display operation for the directory navigation;
and respectively adjusting the attribute parameters of the target template elements and the template components in the drafting template based on the directory navigation to obtain the adjusting template.
As shown in fig. 5(a), in order to illustrate a target template of a service purchase contract acquired for a target service, an additional clause is set in the right side navigation floating column in the figure, and the new clause to be added can be retrieved from the clause library through the retrieval box of the additional clause. The newly added clauses are searched based on the type of the setting parameters, for example, the newly added clauses are searched based on keywords such as "my favor", "secrecy", "jurisdiction", and "performance".
As shown in fig. 5(b), the diagram is a schematic diagram of a new provision adding operation, where a position to be added may be selected and determined, the navigation floating bar may be automatically positioned at the position to be added, and the bathing energy provision retrieved in the floating navigation bar may be added to the corresponding position of the target contract template in a dragging or pasting manner, and the adjustment template may be obtained according to the addition of the corresponding template component.
As shown in fig. 5(c), which is a schematic diagram of a difference comparison preview of a XXX project service purchase contract template, a user can perform a one-key difference comparison preview by triggering a selection control of "show difference information from template". The content of the gray background shown in the figure identifies the newly added content of the contract terms, the content of the gray background with the marked lines is the deleted content, the content can be identified and moved through other forms, the terms and the like can be added, so that a user can quickly know the difference between the revised and adjusted contract template and the target template through difference comparison and preview, and meanwhile, the contract terms and the parameter information of the contract components can be simultaneously displayed in the right navigation floating bar, so that the user can quickly and accurately check and examine the contract terms.
In the embodiment of the application, the target template elements and the template components in the target template can be adjusted by a user in the process of drafting the service file based on the target template, the drafting and approval efficiencies of the service file are further saved through editing operations such as custom modification, addition or deletion, and the like, and the application method and the application device can be suitable for application scenes of the service file with high signing efficiency requirements on contracts, forms and the like.
It can be understood that the implementation manner of the template creation method and the file generation method provided in the embodiment of the present application may be applicable to not only application in a system client scenario created for an enterprise and public institution, but also application in a scenario in which a personal user or an individual merchant needs to generate a service file, for example, application in a scenario such as APP or applet, which is for a mobile phone terminal or a mobile terminal, may be created, so that the personal user may also conveniently and more flexibly improve signing efficiency of the service file at any time, and no specific limitation is made herein.
Fig. 6 is a schematic structural diagram of an embodiment of a template creating apparatus according to an embodiment of the present application.
The apparatus may include:
the standard template determining module 601 is configured to determine a standard template constructed by preset template elements and template components corresponding to the preset template elements.
A standard template editing module 602, configured to edit the preset template element in the standard template based on a target service, so as to obtain a target template element.
And the target template generating module 603 is configured to adjust template components in the standard template based on the service data type related to the target template element, so as to obtain the target template.
The target template is used for generating a service file based on target service data.
It is understood that the standard template may be a template created based on service requirements before service upgrade or service adjustment, or may be a template created based on current service requirements. Optionally, in some embodiments, the standard template determining module 601 may include:
the system comprises a preset service file acquisition unit, a service file processing unit and a service file processing unit, wherein the preset service file acquisition unit is used for acquiring a preset service file uploaded by a user;
a preset template element obtaining unit, configured to obtain the preset template element based on the preset service file;
the template component acquisition unit is used for generating a template component corresponding to the preset template element based on the service data type related to the preset template element;
and the standard template creating unit is used for creating the standard template based on the preset template elements and the template components.
As an implementation manner, the preset template element obtaining unit may specifically be configured to:
and analyzing the file content of the preset service file to obtain preset template elements related to the target service.
As an optional implementation, the standard template editing module 602 may include:
a template element to be edited determining unit, configured to determine a template element to be edited in the preset template elements based on the target service;
and the target template element generating unit is used for triggering the editing operation aiming at the template element to be edited to obtain the target template element.
Optionally, in some embodiments, the target template element generating unit may be specifically configured to:
activating a rich text editor corresponding to the template element to be edited;
and obtaining the target template element based on one or more operations of deleting, splitting, merging or modifying the template element to be edited by the rich text editor.
Optionally, in some embodiments, the standard template editing module 602 may be specifically configured to:
determining new template elements and target positions of the new template elements in the standard template based on the target service;
and adding the newly added template element to the target position to obtain the target template element.
As an optional implementation, the target template generating module 603 may include:
the service data to be adjusted determining unit is used for determining the service data to be adjusted related to the target template element;
and the target template generating unit is used for deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element based on the data type of the service data to be adjusted to obtain the target template.
As an optional implementation manner, the target template generating unit may specifically be configured to:
detecting whether a new service data type exists in the service data to be adjusted;
if yes, generating a template component corresponding to the newly added service data type;
and deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element to obtain the target template.
As an optional implementation manner, the standard template creating unit may specifically be configured to:
adding the preset template elements into a basic template based on rich text layout according to a preset typesetting format;
and adding the template component to the corresponding position in the basic template based on the service data type related to the preset template element to obtain the standard template.
As an optional implementation manner, the adding the template component to the corresponding position in the base template based on the service data type related to the preset template element to obtain the standard template may specifically be used to:
adding the template component to a corresponding position in the basic template based on the service data type related to the preset template element;
generating a directory navigation for the base template;
and setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain the standard template.
As an optional implementation manner, the directory navigation at least includes template element directory navigation and template component directory navigation;
and the directory navigation is displayed in a preset navigation bar based on navigation trigger operation.
As an optional implementation manner, the setting of the preset template parameter and the attribute parameter of the template component based on the directory navigation may specifically be used to obtain the standard template:
triggering the directory navigation to display a template element setting area for a preset template element based on a selection operation for element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the directory navigation to display a component setting area for the template component based on a selection operation for the component setting;
and in the component setting area, setting the component type of the template component to obtain the standard template.
Optionally, in some embodiments, the element attribute parameters may include:
one or more of a tag parameter, an edit status parameter, a risk cue parameter, and an element association parameter.
As an optional implementation manner, the adjusting a template component in the standard template based on the service data type related to the target template element, and obtaining the target template may specifically be used to:
adjusting template components in the standard template based on the type of service data to which the target template element relates;
generating a directory navigation for the standard template;
and adjusting the element parameters of the target template and the attribute parameters of the template component based on the directory navigation to obtain the target template.
In practical application, the technical solution of the present application may be applicable to an application scenario of creating a contract template, and therefore, as an optional implementation manner, the technical solution of the present application further provides a template creating apparatus, which may include:
the standard template determining module is used for determining a standard template constructed by preset contract clauses and template components corresponding to the preset contract clauses;
the standard template editing module is used for editing the preset contract clauses in the standard template based on target service to obtain target contract clauses;
the target template generation module is used for adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a contract file based on the target service data.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, when a scene such as service upgrade or service adjustment occurs or an original standard template needs to be adjusted, a target template meeting service requirements can be obtained quickly and efficiently by flexibly and variously editing and setting parameters of a preset template component and a template component in the standard template. Therefore, the creating efficiency of the target template meeting the target service requirement is greatly improved, and a foundation is laid for quickly and efficiently generating the service file meeting the service requirement and improving the drafting efficiency of the service file.
Fig. 7 is a schematic structural diagram of an embodiment of a file generation apparatus according to an embodiment of the present application.
The apparatus may include:
a target template obtaining module 701, configured to obtain a target template corresponding to a target service based on a service file initiation instruction triggered by a user.
And the target template adjusts the generation of template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements.
A file generating module 702, configured to render, in the target template, target service data in the target service corresponding to the template component in the target template, so as to generate a service file.
As an implementation manner, the file generating module 702 may specifically be configured to:
determining a current service event of the target service;
acquiring service data of at least one template component in the target template respectively corresponding to the service event based on service file generation operation corresponding to the service event;
adding the target service data to the target template according to the data formats respectively corresponding to the at least one template component;
and rendering the target template according to a preset file format to obtain the service file.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, the service data of the target service is rendered into the target template corresponding to the target service, and the service data is replaced with the corresponding template component to obtain the template example of the target service, so that the drafting efficiency of the service file is greatly improved. In practical application, the template instance is only the running template data, and the template instance is further rendered into the service file in the preset file format, so that the generated service file meeting the service requirement is quickly and efficiently realized.
Fig. 8 is a schematic structural diagram of an embodiment of a file generation apparatus according to an embodiment of the present application.
The apparatus may include:
a target template obtaining module 801, configured to obtain a target template corresponding to a target service based on a service file initiation instruction triggered by a user.
And the target template adjusts the generation of template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements.
A file generating module 802, configured to render, in the target template, target service data in the target service corresponding to the template component in the target template, and generate a service file.
The file generation module 802 may include:
a drafting template generating unit 811, configured to render the target service data in the target service corresponding to the template component in the target template into the target template, so as to obtain a drafting template.
And a file generating unit 812, configured to adjust the drafting template to generate the service file based on the target service requirement.
As an optional implementation manner, the file generating unit 812 may include:
the adjusting template obtaining unit is used for adjusting the drafting template to obtain an adjusting template based on the target service requirement;
the judging unit is used for determining whether the adjusting template meets the target service requirement; if yes, triggering a service file generation unit; if not, triggering an adjusting template obtaining unit to continuously adjust the adjusting template until the adjusting template meets the target service requirement.
A service file generation unit for generating the service file based on the adjustment template;
after the user drafts, or the target template may be modified and adjusted at multiple places, so that the user can check the difference between the latest adjusted template and the target template in a difference comparison preview manner to determine whether the current template meets the target service requirement. Therefore, further in some embodiments, the determining unit may specifically be configured to:
triggering a difference comparison preview between the adjusting template and the drafting template;
and detecting whether the adjusting template meets the target service requirement or not based on the difference comparison preview.
As an optional implementation manner, the adjustment template obtaining unit may specifically be configured to:
and editing the target template elements in the editable state in the drafting template based on the target service requirement to obtain the adjusting template.
As an optional implementation manner, the adjustment template obtaining unit may specifically be configured to:
determining new template elements to be added based on the target service requirement;
and adding the newly added template elements to the corresponding positions of the drafting template to obtain the adjusting template.
As an implementation manner, the determining, based on the target service requirement, a newly added template element to be added may specifically be used to:
determining keywords corresponding to newly added template elements to be added based on the target service requirement;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
As an implementation manner, the retrieving, based on the keyword, the newly added template element from the preset template element library may specifically be used to:
displaying the template element retrieval area in a preset navigation bar based on display operation aiming at the template element retrieval area;
inputting keywords corresponding to the newly added template elements in the template element retrieval area;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
Optionally, in some embodiments, the adjustment template obtaining unit may be specifically configured to:
displaying the directory navigation in a preset navigation bar based on a display operation for the directory navigation;
and respectively adjusting the attribute parameters of the target template elements and the template components in the drafting template based on the directory navigation to obtain the adjusting template.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, the target template elements and the template components in the target template can be adjusted by a user in the process of drafting the service file based on the target template, the drafting and approval efficiencies of the service file are further saved through editing operations such as custom modification, addition or deletion, and the like, and the application method and the application device can be suitable for application scenes of the service file with high signing efficiency requirements on contracts, forms and the like.
Fig. 9 is a schematic structural diagram of an embodiment of a computer device provided in an embodiment of the present application, where the server may include a processing component 901 and a storage component 902. The storage component 902 is configured to store one or more computer instructions, wherein the one or more computer instructions are invoked for execution by the processing component.
The processing component 901 may be configured to:
determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
editing the preset template elements in the standard template based on target service to obtain target template elements;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template; the target template is used for generating a service file based on target service data.
The processing component 901 may include one or more processors to execute computer instructions to perform all or part of the steps of the above-described method. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
Storage component 902 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, a computer device may also necessarily include other components, such as input/output interfaces, communication components, and so forth.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the template creation method of the embodiment shown in fig. 1 may be implemented.
Fig. 10 is a schematic structural diagram of an embodiment of a computer device provided in an embodiment of the present application, where the terminal device may include a processing component 1001 and a storage component 1002. The storage component 1002 is configured to store one or more computer instructions, where the one or more computer instructions are invoked for execution by the processing component.
The processing component 1001 may be configured to:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
The processing component 1001 may include one or more processors to execute computer instructions to perform all or part of the steps of the method described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1002 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, a computer device may also necessarily include other components, such as input/output interfaces, communication components, and so forth.
The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the file generation method in the embodiments shown in fig. 3 and fig. 4 can be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (31)

1. A template creation method, comprising:
determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
editing the preset template elements in the standard template based on target service to obtain target template elements;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
2. The method of claim 1, wherein the determining a standard template constructed by preset template elements and template components corresponding to the preset template elements comprises:
acquiring a preset service file uploaded by a user;
acquiring the preset template elements based on the preset service file;
generating a template component corresponding to the preset template element based on the service data type related to the preset template element;
and creating the standard template based on the preset template elements and the template components.
3. The method of claim 2, wherein the obtaining the preset template elements based on the preset service file comprises:
and analyzing the file content of the preset service file to obtain preset template elements related to the target service.
4. The method according to claim 1, wherein the editing the preset template elements in the standard template to obtain target template elements comprises:
determining template elements to be edited in the preset template elements based on the target service;
and triggering the editing operation aiming at the template element to be edited to obtain a target template element.
5. The method of claim 4, wherein the triggering an editing operation for the template element to be edited comprises:
activating a rich text editor corresponding to the template element to be edited;
and obtaining the target template element based on one or more operations of deleting, splitting, merging or modifying the template element to be edited by the rich text editor.
6. The method of claim 5, wherein the obtaining the target template element based on the rich text editor performing one or more of deleting, splitting, merging or modifying the template element to be edited comprises:
moving the template element split character corresponding to the template element to be edited to a target split position of the template element to be edited based on the rich text editor;
and splitting the template element to be edited at the target splitting position to obtain the target template element.
7. The method according to claim 6, wherein the moving the template element splitter corresponding to the template element to be edited to the target splitting position of the template element to be edited based on the rich text editor comprises:
determining a template element split character corresponding to the template element to be edited;
recording a first splitting position of the identifier of the mobile template element in the template element to be edited;
and when the template element identifier is detected to move to a second splitting position of the template element to be edited, combining two template elements in front of and behind the first splitting position, and taking the second splitting position as the target splitting position.
8. The method according to claim 1, wherein the editing the preset template elements in the standard template to obtain target template elements comprises:
determining new template elements and target positions of the new template elements in the standard template based on the target service;
and adding the newly added template element to the target position to obtain the target template element.
9. The method of claim 1, wherein the adjusting template components in the standard template based on the service data related to the target template element, and obtaining the target template comprises:
determining the service data to be adjusted related to the target template element;
and deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element based on the data type of the service data to be adjusted to obtain the target template.
10. The method according to claim 1, wherein the deleting, adding or moving a template component corresponding to the data type to a corresponding position of the target template element based on the data type of the service data to be adjusted, and obtaining the target template comprises:
detecting whether a new service data type exists in the service data to be adjusted;
if yes, generating a template component corresponding to the newly added service data type;
deleting, adding or moving the template component corresponding to the data type to the corresponding position of the target template element to obtain the target template.
11. The method of claim 2, wherein creating a standard template based on the preset template elements and the corresponding template components of the preset template elements comprises:
adding the preset template elements into a basic template based on rich text layout according to a preset typesetting format;
and adding the template component to the corresponding position in the basic template based on the service data type related to the preset template element to obtain the standard template.
12. The method according to claim 9, wherein the adding the template component to the corresponding position in the base template based on the service data type related to the preset template element, and the obtaining the standard template comprises:
adding the template component to a corresponding position in the basic template based on the service data type related to the preset template element;
generating a directory navigation for the base template;
and setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain the standard template.
13. The method of claim 12, wherein the setting the preset template parameters and the attribute parameters of the template component based on the directory navigation, and obtaining the standard template comprises:
triggering the directory navigation to display a template element setting area for a preset template element based on a selection operation for element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the directory navigation to display a component setting area for the template component based on a selection operation for the component setting;
and in the component setting area, setting the component type of the template component to obtain the standard template.
14. The method of claim 13, wherein the element attribute parameters comprise:
one or more of a tag parameter, an edit status parameter, a risk cue parameter, and an element association parameter.
15. The method of claim 13, wherein the adjusting the template component in the standard template based on the service data type to which the target template element relates, and the obtaining the target template comprises:
adjusting template components in the standard template based on the type of service data to which the target template element relates;
generating a directory navigation for the standard template;
and adjusting the element parameters of the target template and the attribute parameters of the template component based on the directory navigation to obtain the target template.
16. The method according to any one of claim 12 or claim 15, wherein the directory navigation includes at least a template element directory navigation and a template component directory navigation;
and the directory navigation is displayed in a preset navigation bar based on navigation trigger operation.
17. A file generation method, comprising:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
18. The method of claim 17, wherein rendering target service data in the target service corresponding to a template component in the target template into the target template, and generating a service file comprises:
rendering target service data corresponding to the template component in the target template in the target service to the target template to obtain a drafting template;
and adjusting the drafting template to generate the service file based on the target service requirement.
19. The method of claim 18, wherein adjusting the drafted template generation service file based on the target service requirement comprises:
based on the target service requirement, adjusting the drafting template to obtain an adjusting template;
determining whether the adjustment template meets the target service requirement;
if so, generating the service file based on the adjusting template;
if not, continuing to adjust the adjusting template until the adjusting template meets the target service requirement.
20. The method of claim 19, wherein the determining whether the adjustment template meets the target service requirement comprises:
triggering a difference comparison preview between the adjusting template and the drafting template;
and detecting whether the adjusting template meets the target service requirement or not based on the difference comparison preview.
21. The method of claim 19, wherein adjusting the drafted template based on the target service requirement to obtain an adjusted template comprises:
and editing the target template elements in the editable state in the drafting template based on the target service requirement to obtain the adjusting template.
22. The method of claim 19, wherein adjusting the drafted template based on the target service requirement to obtain an adjusted template comprises:
determining new template elements to be added based on the target service requirement;
and adding the newly added template elements to the corresponding positions of the drafting template to obtain the adjusting template.
23. The method of claim 22, wherein determining a new template element to be added based on the target service requirement comprises:
determining keywords corresponding to newly added template elements to be added based on the target service requirement;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
24. The method of claim 23, wherein retrieving the new template element from a library of pre-defined template elements based on the keyword comprises:
displaying the template element retrieval area in a preset navigation bar based on display operation aiming at the template element retrieval area;
inputting keywords corresponding to the newly added template elements in the template element retrieval area;
and based on the keywords, retrieving the newly-added template elements from a preset template element library.
25. The method of claim 19, wherein adjusting the drafted template based on the target service requirement to obtain an adjusted template comprises:
displaying the directory navigation in a preset navigation bar based on a display operation for the directory navigation;
and respectively adjusting the attribute parameters of the target template elements and the template components in the drafting template based on the directory navigation to obtain the adjusting template.
26. A template creation method, comprising:
determining a standard template constructed by preset contract terms and template components corresponding to the preset contract terms;
editing the preset contract clauses in the standard template based on a target service to obtain target contract clauses;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a contract file based on the target service data.
27. A file generation method, comprising:
acquiring a target template corresponding to the target service based on a contract file initiating instruction triggered by a user; the target template adjusts template component generation in a standard template based on target contract terms obtained by presetting contract terms in a target service editing standard template and based on data types related to the target contract terms;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a contract file.
28. A template creation apparatus, characterized by comprising:
the standard template determining module is used for determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
the standard template editing module is used for editing the preset template elements in the standard template based on target service to obtain target template elements;
the target template generation module is used for adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
29. A file generation apparatus, comprising:
the target template acquisition module is used for acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and the file generation module is used for rendering the target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
30. A computer device comprising a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
determining a standard template constructed by preset template elements and template components corresponding to the preset template elements;
editing the preset template elements in the standard template based on target service to obtain target template elements;
adjusting template components in the standard template based on the service data type related to the target template element to obtain a target template;
the target template is used for generating a service file based on target service data.
31. A computer device comprising a processing component and a storage component; the storage component is used for storing one or more computer instructions, wherein the one or more computer instructions are used for the processing component to call and execute;
the processing component is to:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; the target template is generated by adjusting template components in the standard template based on target template elements obtained by editing preset template elements in the standard template by the target service and based on the data types related to the target template elements;
and rendering target service data corresponding to the template component in the target template in the target service to the target template to generate a service file.
CN201911253116.5A 2019-12-09 2019-12-09 Template creation method, file generation method, device and computer equipment Active CN113033171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911253116.5A CN113033171B (en) 2019-12-09 2019-12-09 Template creation method, file generation method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911253116.5A CN113033171B (en) 2019-12-09 2019-12-09 Template creation method, file generation method, device and computer equipment

Publications (2)

Publication Number Publication Date
CN113033171A true CN113033171A (en) 2021-06-25
CN113033171B CN113033171B (en) 2024-07-05

Family

ID=76450994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911253116.5A Active CN113033171B (en) 2019-12-09 2019-12-09 Template creation method, file generation method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN113033171B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326685A (en) * 2021-08-04 2021-08-31 北京星天科技有限公司 Typesetting method and device driven by database
CN115904572A (en) * 2022-10-26 2023-04-04 北京力控元通科技有限公司 Template creating method, template calling method, program product, template system and template device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2822265A1 (en) * 2001-03-16 2002-09-20 Bouygues Telecom Sa Creation of contracts by non-legal specialists within companies using a software support tool that allows legal document templates and associated clauses to be accessed in a central module to draw up acceptable contracts
US8370386B1 (en) * 2009-11-03 2013-02-05 The Boeing Company Methods and systems for template driven data mining task editing
CN104424591A (en) * 2013-09-07 2015-03-18 镇江金软计算机科技有限责任公司 User-defined method for house rent expense template
CN105740217A (en) * 2014-12-08 2016-07-06 珠海金山办公软件有限公司 Document generation method and device based on document template
CN106506563A (en) * 2016-12-30 2017-03-15 中国建设银行股份有限公司 account setup method, device and bank service system
CN106952072A (en) * 2016-01-26 2017-07-14 深圳市瑞福登信息技术服务有限公司 A kind of method and system of data processing
CN108614692A (en) * 2017-07-24 2018-10-02 深圳壹账通智能科技有限公司 Edit model method, apparatus, server and medium
CN109299446A (en) * 2018-08-03 2019-02-01 新华三大数据技术有限公司 Report-generating method and device
CN109635257A (en) * 2018-10-30 2019-04-16 深圳壹账通智能科技有限公司 A kind of configuration method and device of contract template
CN109933754A (en) * 2019-01-31 2019-06-25 平安科技(深圳)有限公司 Search method, apparatus, computer equipment and the storage medium of change to the contract part
CN110134387A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Document template data processing method, device and computer equipment in loan transaction
CN110244899A (en) * 2019-05-06 2019-09-17 深圳法大大网络科技有限公司 Electronic contract on-line processing method, Online Processing System and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2822265A1 (en) * 2001-03-16 2002-09-20 Bouygues Telecom Sa Creation of contracts by non-legal specialists within companies using a software support tool that allows legal document templates and associated clauses to be accessed in a central module to draw up acceptable contracts
US8370386B1 (en) * 2009-11-03 2013-02-05 The Boeing Company Methods and systems for template driven data mining task editing
CN104424591A (en) * 2013-09-07 2015-03-18 镇江金软计算机科技有限责任公司 User-defined method for house rent expense template
CN105740217A (en) * 2014-12-08 2016-07-06 珠海金山办公软件有限公司 Document generation method and device based on document template
CN106952072A (en) * 2016-01-26 2017-07-14 深圳市瑞福登信息技术服务有限公司 A kind of method and system of data processing
CN106506563A (en) * 2016-12-30 2017-03-15 中国建设银行股份有限公司 account setup method, device and bank service system
CN108614692A (en) * 2017-07-24 2018-10-02 深圳壹账通智能科技有限公司 Edit model method, apparatus, server and medium
CN109299446A (en) * 2018-08-03 2019-02-01 新华三大数据技术有限公司 Report-generating method and device
CN109635257A (en) * 2018-10-30 2019-04-16 深圳壹账通智能科技有限公司 A kind of configuration method and device of contract template
CN109933754A (en) * 2019-01-31 2019-06-25 平安科技(深圳)有限公司 Search method, apparatus, computer equipment and the storage medium of change to the contract part
CN110134387A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Document template data processing method, device and computer equipment in loan transaction
CN110244899A (en) * 2019-05-06 2019-09-17 深圳法大大网络科技有限公司 Electronic contract on-line processing method, Online Processing System and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JESWANI, D等: "Minimizing Latency in Serving Requests through Differential Template Caching in a Cloud", 《2012 IEEE 5TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING (CLOUD)》, 30 August 2012 (2012-08-30) *
董洪伟, 周儒荣, 须文波: "一个标识子***的设计与实现", 计算机辅助设计与图形学学报, no. 04, 20 April 2002 (2002-04-20) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326685A (en) * 2021-08-04 2021-08-31 北京星天科技有限公司 Typesetting method and device driven by database
CN113326685B (en) * 2021-08-04 2021-11-12 北京星天科技有限公司 Typesetting method and device driven by database
CN115904572A (en) * 2022-10-26 2023-04-04 北京力控元通科技有限公司 Template creating method, template calling method, program product, template system and template device

Also Published As

Publication number Publication date
CN113033171B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
US11010537B2 (en) Web-intrinsic interactive documents
CN112632942B (en) Document processing method, device, equipment and medium
RU2714609C1 (en) Automation of document generation
CN107506343B (en) A kind of processing method and processing device of information editing
US20160170712A1 (en) Method for integrally implementing development and release of APP
US11870738B2 (en) Conversation-enabled document system and method
US20170169461A1 (en) Promotion system and promotion method
US20070067714A1 (en) Modularized web page editing system and method thereof
CN108762760A (en) Software interface customizing method, device, computer equipment and storage medium
CN112015412A (en) Device and method for generating business model based on form engine
CN105719049B (en) Method and system for realizing intelligent log
US9824479B2 (en) Method of animating messages
CN109635262B (en) Automatic generation management method and system for bidding documents
CN113033171A (en) Template creating method, file generating method, device and computer equipment
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
US8166401B2 (en) Providing a presentation in a remote location
US10885013B2 (en) Automated application lifecycle tracking using batch processing
CN110768896A (en) Session information processing method and device, readable storage medium and computer equipment
US9894210B2 (en) Adjustable dual-tone multi-frequency phone system
CN117522094A (en) Seal management method, platform, electronic equipment and storage medium
CN109543166A (en) Generation method, server and the computer readable storage medium of house property poster template
CN114676671A (en) Document online editing method and device and computer readable storage medium
KR102300444B1 (en) Document editing device to check whether the font applied to the document is a supported font and operating method thereof
CN113822025A (en) Office file automatic generation method, device, equipment and storage medium
CN108875070B (en) Method, equipment and system for setting message-leaving type web page

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
GR01 Patent grant
GR01 Patent grant