CN113033171B - Template creation method, file generation method, device and computer equipment - Google Patents

Template creation method, file generation method, device and computer equipment Download PDF

Info

Publication number
CN113033171B
CN113033171B CN201911253116.5A CN201911253116A CN113033171B CN 113033171 B CN113033171 B CN 113033171B CN 201911253116 A CN201911253116 A CN 201911253116A CN 113033171 B CN113033171 B CN 113033171B
Authority
CN
China
Prior art keywords
template
target
service
preset
component
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.)
Active
Application number
CN201911253116.5A
Other languages
Chinese (zh)
Other versions
CN113033171A (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
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

Abstract

The embodiment of the application provides a template creation method, a file generation device and computer equipment. In the embodiment of the application, the target template element is obtained by determining a standard template constructed by a preset template element and a template component corresponding to the preset template element and editing the preset template element in the standard template based on target service. Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template; the target template is used for generating a service file based on target service data. The application can save the drafting time of the service file and greatly improve the generation efficiency of the service file.

Description

Template creation method, file generation method, device and computer equipment
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a template creation method, a file generation device and computer equipment.
Background
With the rapid development of internet technology, more and more enterprises use contract templates to generate service contracts in order to save contract drafting time and contract approval time and improve the signing efficiency of the contracts.
However, the standard contract template is usually created for specific services, so that the coverage range of contract terms in the contract template is limited, when service upgrading or service adjustment occurs, the contract terms in the original contract template cannot be suitable for a new service scene, and in order to avoid contract risk management personnel, the contract template needs to be re-created for the current service scene, so that the signing efficiency of the service contract is greatly affected.
Disclosure of Invention
The embodiment of the application provides a template creation method, a file generation device and computer equipment, which can save drafting time of service files and greatly improve the generation efficiency of the service files.
In a first aspect, an embodiment of the present application provides a template creation method, including:
determining a standard template constructed by a template component corresponding to a preset template element;
editing the preset template elements in the standard template based on a target service to obtain target template elements;
Based on the service data type related to the target template element, adjusting a template component in the standard template 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 generating 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 a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on 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 creation method, including:
Determining a standard template constructed by a template component corresponding to preset contract clauses;
Editing the preset contract terms in the standard template based on target service to obtain target contract terms;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template;
the target template is used for generating a contract file based on target service data.
In a fourth aspect, an embodiment of the present application provides a file generating 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 is generated by adjusting a template component in the standard template based on target contract clauses obtained by presetting contract clauses in the target service editing standard template and based on data types related to the target contract clauses;
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 creation 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 the target service to obtain target template elements;
the target template generation module is used for adjusting a template component 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 the target service based on a service file initiation instruction triggered by a user; the target template is generated by adjusting a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on 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, in an embodiment of the present application, a computer device includes 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 being called by the processing component for execution;
The processing assembly is configured to:
determining a standard template constructed by a template component corresponding to a preset template element;
editing the preset template elements in the standard template based on a target service to obtain target template elements;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template;
The target template is used for generating a service file based on target service data.
In an eighth aspect, in an embodiment of the present application, a computer device includes 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 being called by the processing component for execution;
The processing assembly is 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 a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on 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 creation method, a file generation device and computer equipment. In order to adapt to the diversity and complexity of the service requirements, the template elements and the template components of the standard templates are adjusted based on the target service, so that the creation efficiency of the target templates meeting the target service requirements can be greatly improved. Based on the service requirement, 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 quickly and efficiently generated, and the generation efficiency of the service file is greatly improved.
These and other aspects of the 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 of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram illustrating one embodiment of a template creation method provided in accordance with the present application;
FIGS. 2 (a) -2 (d) are schematic views showing editing of a service purchase contract provided in accordance with the present application;
FIG. 3 is a flow chart illustrating one embodiment of a method for generating a file according to the present application;
FIG. 4 is a schematic flow chart of another embodiment of a file generation method according to the present application;
FIGS. 5 (a) -5 (c) are schematic diagrams showing a drafting process of a service purchase contract provided according to the present application;
FIG. 6 is a schematic diagram showing the construction of one embodiment of a template creation apparatus according to the present application;
FIG. 7 is a schematic view showing the structure of an embodiment of a document generating apparatus according to the present application;
FIG. 8 is a schematic view showing the structure of a further embodiment of a document generating apparatus according to the present application;
FIG. 9 illustrates a schematic diagram of one embodiment of a computer device provided in accordance with the present application;
Fig. 10 is a schematic structural view of an embodiment of a computer device according to the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
In some of the flows described in the specification and claims of the present application and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, 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" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
In order to save the drafting time of the service file and improve the generating efficiency of the service file, the inventor provides a technical scheme through a series of researches. In the embodiment of the application, the target template element is obtained by determining a standard template constructed by a preset template element and a template component corresponding to the preset template element and editing the preset template element in the standard template based on target service. And adjusting a template component in the standard template based on the service data type related to the target template element to obtain a target template. Therefore, the creation efficiency of the target template meeting the target service requirement can be greatly improved. The method lays a foundation for rapidly and efficiently generating the service file meeting the service requirement and improving the drafting efficiency of the service file.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the 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 a template component corresponding to the preset template element.
With the rapid development of internet technology, in order to improve office efficiency, users are standardized to operate service files meeting service requirements, and more enterprises choose to use template drafting service files meeting industry specifications, such as contract templates, mail templates and the like.
In practical application, the template elements are manifestations of fixed content in the service file, such as contract clauses, mail subjects and the like, and the template elements can have different manifestations according to different scenes.
In the drafting process of the service file, general form components such as filling, single selection, multiple selection, date selection and the like are used to replace the data format of the content part needing to be customized in the using process of the template. The generic form component may be referred to as a template component, and in practice the template component may be a placeholder in the template, specifying the type of data in the template that the editable field may enter. The placeholder type may include a normal value type, a table type, a single check type, etc., and is not particularly limited herein.
It will be appreciated that the standard template may be a template created based on service requirements prior to service upgrades or service adjustments, or a template created based on current service requirements. Optionally, in some embodiments, the determining the standard template constructed by the preset template element and the template component corresponding to the preset template element 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 component.
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 can be obtained by analyzing and obtaining a preset template element based on a preset service file uploaded by a user and constructing and obtaining the standard template based on 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, which is not particularly limited herein.
Taking a contract template as an example, a manager can take a standard contract file meeting industry specifications as a preset contract file, a system can acquire contract term contents by analyzing the preset contract file, determine the data type of the content needing to be customized in the contract term contents, create a template component corresponding to the data type, determine the typesetting mode of the contract term based on the preset contract file or determine the position of the contract term and the corresponding template component in a template according to the determined typesetting mode in a template editor, so as to generate the standard template.
102: Editing the preset template elements in the standard template based on the target service to obtain target template elements.
In practical applications, the target service may be that in any business or non-business property activities, the service activities need to be completed based on the support of service files conforming to a certain industry, for example, in the service activities of production, financial accounting, statistics, business cooperation, etc., the support of service files such as forms, contracting papers, mails, etc. is required, and the method is not limited in detail herein.
Aiming at the scene of service adjustment or service upgrading of the target service, the preset template elements can be edited through a rich text editor on the basis of a standard template, and various editing operations such as splitting, modifying, deleting, merging, adding and moving the preset template elements can be realized to obtain the target template elements meeting the requirements of the target service.
103: And adjusting a template component 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.
And the user-defined content part corresponding to the target template element is correspondingly adjusted after editing, so that the corresponding template component is adjusted based on the data type of the data to be adjusted in the target template element, such as moving, deleting, adding and the like, and the target template matched with the target service requirement is obtained.
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;
Triggering the editing operation aiming at the template element to be edited to obtain a target template element.
Optionally, in some embodiments, the triggering an editing operation for the template element to be edited may include:
activating a rich text editor corresponding to the template element to be edited;
and based on the rich text editor, performing one or more operations of deleting, splitting, combining or modifying the template element to be edited, and obtaining the target template element.
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 can correspond to a rich text editing box, and when any preset template element is determined to be the template element to be edited, the rich text editing box corresponding to the template element to be edited is triggered, so that the editing operation of the preset template element is realized in the rich text editing box.
As an optional implementation manner, the performing, based on the rich text editor, one or more operations of deleting, splitting, merging or modifying the template element to be edited, and obtaining the target template element may include:
Based on the rich text editor, moving a template element split character corresponding to the template element to be edited to a target split position of the template element to be edited;
and executing splitting operation on the template element to be edited at the target splitting position to obtain the target template element.
The template element splitting can be set with buoys or identification buttons and the like at any position of the target template element without specific limitation, and a user can activate a rich text editor corresponding to the target template element by triggering the buoys or the buttons so as to realize editing operation of the target template element.
After moving the template element splitter to a target splitting position, if the position is positioned at the middle position of any paragraph of the template element to be edited, dividing the paragraph into two target template elements at the position; if the position is at the beginning or ending 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 are not particularly limited herein.
As an achievable real-time manner, the moving, based on the rich text editor, the template element splitting symbol 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 mobile template element identifier in the template element to be edited;
When the template element identifier is detected to move to a second splitting position of the template element to be edited, combining the front template element and the rear template element at the first splitting position, and taking the second splitting position as the target splitting position.
When the template element split symbol is detected to move from a first split position to a second split position in the same split operation process, the two templates can be automatically combined after being split at the first split position, and the second split position after the movement is taken as the target split 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 the actual situation and the user requirement, which is not limited herein.
Optionally, in some embodiments, the editing the preset template element in the standard template, and obtaining the target template element may include:
determining a new template element and a target position of the new template element 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, a user can drag the newly added template element to a corresponding target position, at the moment, the 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 application, when new contract terms are found to be added in the standard contract template, the new contract terms can be added to corresponding term positions, and at this time, the term numbers can also be adjusted correspondingly automatically, for example, after one contract term is added before the term 5 of the standard contract template, the original term 5 is adjusted to be the term 6 automatically, and the following term numbers are sequentially increased, which is not limited in detail herein.
As an optional implementation manner, 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 service data to be adjusted, which are related to the target template element;
and deleting, adding or moving a 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 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, and obtaining the target template includes:
determining a template component to be added and a target adding position of the template component;
The template component is added to the target adding position based on the moving operation of the user on the template component to be added.
In practical application, the template components in the same clauses are numbered in the standard contract template, the template components can be automatically numbered according to the sequence of appearance or the adding sequence of the template components, after the final target contract clause is determined, the corresponding template components are adjusted according to the data types related to the target contract clause, for example, adding, moving, deleting and the like, and after the corresponding operation is completed, the number of the template components can be adaptively adjusted according to the coding rule, so that the method is not particularly limited.
As an optional implementation manner, the 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, 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;
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.
In practical application, before generating the standard template, generating a corresponding template component according to the type of the data type related to the preset template element, adding the template component 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, adding the template component to the corresponding template element in a pulling or pasting mode, and if the data type of the service data to be adjusted is the newly added data type, creating the template component corresponding to the data type, thereby obtaining the target template.
As an optional implementation manner, the creating the 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 template editor with a rich text editing function may be used to generate a basic template based on a rich text layout, 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 added to a corresponding rich text editing frame, so that flexible typesetting and adjustment editing of preset template elements can be implemented according to preset typesetting requirements and service adjustment requirements, which is not limited 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 related to the preset template element, and obtaining the standard template may include:
based on the service data type related to the preset template element, adding the template component to a corresponding position in the basic template;
generating a catalog navigation for the base template;
and setting the preset template parameters and the attribute parameters of the template assembly based on the directory navigation to obtain the standard template.
As an alternative implementation mode, the catalog navigation at least comprises a template element catalog navigation and a template component catalog navigation;
The catalog navigation is displayed in a preset navigation bar based on navigation triggering operation.
When a trigger event of a user on any target template element or any template component in the template editing interface is detected, for example, when a selection operation such as clicking is performed, the target template element or the template component corresponding to the trigger event and the corresponding target suspension position are determined, and at this time, the catalog navigation is positioned to the target suspension position for suspension, and in a parameter setting area of the target template element or the template component, the catalog navigation is suspended, so that the user can modify or set attribute parameters.
In order to facilitate editing of the standard template, the editing control can be displayed in a preset area in a directory navigation mode or any other mode after the user triggers the editing operation, for example, the editing control is always suspended in the right area of the standard template in the form of directory navigation based on the navigation triggering operation of the user, and the relative position of the editing control and a template element or a template component to be adjusted in the basic 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 the specific limitation is not limited herein. In order to facilitate user operation, after a user triggers an element setting control, the catalog navigation can quickly locate a preset template element in the left standard template and expand an attribute setting area for the preset template element; when 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 performed 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 catalog navigation to display a template element setting area aiming at a preset template element based on a selection operation aiming at element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the catalog navigation to display a component setting area for the template component based on a selection operation for component setting;
And setting the component type of the template component in the component setting area 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 prompt parameter, and an element association parameter.
Taking a contract template as an example, the editable state of the terms can be set in a contract term setting area, if the terms can be set as non-editable state for non-modifiable terms, whether risk prompting is performed to prompt a user to use risks possibly existing in the contract can be set, the selection of the types of the terms (such as low administrative, jurisdiction, IP, confidentiality, performance and the like), the benefits of the terms (such as benefits of my party, benefits of opposite party and the like), the association attributes (such as mutual exclusion relation, dependency relation and the like) between the terms and other terms can be set, and the method is not limited in detail and can be set according to actual requirements.
In the component setting area, the created template component can be edited, for example, the component type (such as radio selection, filling, date, time and the like) can be set or modified, prompt information of the template component can be input, and parameters such as whether the template component participates in the setting are set, and the method is not limited in detail.
In order to improve the user experience, as an optional implementation manner, the association relationship between the target element and preset information is established. For example, in a contract template, a correlation relationship can be established between a common keyword or phrase related in contract clauses and preset information, for example, when contents such as XX clauses or XX standards appear in the contract clauses, the information can be established into a hyperlink with an actual storage position of XX clauses or XX standards, so that a user can jump to a page of XX clauses or XX standards to check specific contents when checking the contract file by triggering the hyperlink. Of course, remark information can 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 limited in detail herein, and can be set according to actual requirements.
As an optional implementation manner, the adjusting the template component in the standard template based on the service data type related to the target template element, and obtaining the target template may include:
adjusting a template component in the standard template based on the service data type related to the target template element;
generating a catalog navigation for the standard template;
and adjusting the parameters of the target template elements and the attribute parameters of the template components based on the catalog navigation to obtain the target template.
After the editing of the preset template elements and the template components in the standard template is completed, the parameters of the target template elements and the attribute parameters of the template components can be adjusted according to actual requirements, so that a target template matched with the service requirements is obtained.
In practical application, the technical scheme of the application can be suitable for an application scene of creating a contract template, so as to be an optional implementation manner, the technical scheme of the application also provides a template creation method which can comprise the following steps:
Determining a standard template constructed by a template component corresponding to preset contract clauses;
Editing the preset contract terms in the standard template based on target service to obtain target contract terms;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template;
the target template is used for generating a contract file based on 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 scenario, but is also applicable to service files related to informatization management in any scenario, such as electronic contracts, electronic forms, e-mails, etc., which are not specifically limited herein.
Fig. 2 (a) is an edit schematic diagram of a standard template of a service purchase contract, where a right area of the standard template is suspended with a suspension navigation bar generated for the standard template contract, through which attribute parameters of contract terms (such as numbers, risk prompts, term types, benefit trends, associated settings, etc.) and attribute parameters of template components (such as component types, option values, prompt messages, etc. (not shown)) in the standard template contract can be set.
As shown in fig. 2 (b), the editing operation of a certain contract term in the standard template for a service purchase contract may trigger the splitting operation of the corresponding rich text editing box of 3.1 "payment settlement", and the terms may be split into 3.1 and 3.2 terms. In the editing state, editing operations such as deletion, modification, addition, splitting (splitting a single term into a plurality of terms), upward merging (merging a currently edited term and a previous term into a single term), font paragraph setting, typesetting, and the like may also be performed on the term, and are not particularly limited herein.
The navigation suspension bar can automatically position the editing clauses, and when the user selects clause 3.1, the suspension navigation bar automatically positions the corresponding positions of the clauses, so that the navigation suspension bar is convenient for carrying out corresponding modification setting on the attribute parameters of the modified target contract clauses.
In the embodiment of the application, the edited target contract clauses can be archived and stored in the clause library, so that the user can conveniently search, acquire and use the target contract clauses through the identification information such as the clause types of the contract when drafting the contract.
As shown in fig. 2 (c), a schematic diagram of a division operation of a certain contract term in a standard template for a service purchase contract may be obtained by, for example, dragging a term buoy (i.e., an arrow buoy on the upper left side of the term) to a division position, releasing the term buoy at the division position, and setting the buoy on the upper left side of the corresponding term at the division position, thereby dividing the new term. After the division, 14.3 clauses are divided from clause 14 to become new clause 15 and any of the editing operations described above may be performed on the newly divided clause 15.
As shown in fig. 2 (d), an operation diagram of adding a certain template component in a standard template for a service purchase contract is shown, for example, the term 2.4 includes a new template component, the data type of the template component is the same as that of the created template component "005 filling", after a release event of the drag or copy operation is monitored through the drag operation or copy operation, the "005 filling" is copied to a corresponding position in the term 2.4, and the template component coding is adjusted according to the position of the new added template component.
It will be appreciated that the embodiment of the present application includes, but is not limited to, the template editing modes shown in fig. 2 (a) -2 (d), and may be adaptively set according to the actual template editing requirement, which is not limited herein.
Meanwhile, the foregoing template editing implementation manner according to the embodiment of the present application may be applicable to any editable stage such as file drafting, and is not limited herein.
In the embodiment of the application, when the scenes such as service upgrading or service adjustment occur or the original standard template needs to be adjusted, the target template meeting the service requirement can be quickly and efficiently obtained by flexibly and variously editing the preset template component and the template component in the standard template and setting parameters. Therefore, the creation 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 generating 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.
The target template is generated by adjusting a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on data types related to the target template elements.
In practical application, the target templates are uniformly generated by an administrator and stored in the system platform, when a user wants to generate a service file based on the target templates, the service file initiation instruction can be triggered in the system platform to acquire the target templates corresponding to the target services, for example, the target templates can be distributed after the administrator receives the instruction, or the user acquires the acquisition permission of the target templates based on the initiation instruction, and the target templates are acquired in the system based on the keyword retrieval of the target services, and can be specifically set according to practical 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 the target service data corresponding to the template component in the target template in the target service to the target template, and generating a 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 corresponding to the service event based on a service file generation operation corresponding to the service event;
adding the target service data into the target template according to the data format 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 data format is defined in the template components in the actual target template, so when service data is rendered into the target template, the data format of the template components corresponding to the service data and the data format of the template components corresponding to the service data are firstly determined, and the service data is added into the target template according to the data format of the template components. For example, if the target template defines that the font of the 005 template component is regular script, five-number character and line height is 22mm, and the service data is XXX company, the XXX company is rendered into the 005 template component according to the data format defined above.
In practical application, service data of a target service can be obtained through an upstream service system platform, for example, when a contracting instrument event occurs, service data of a current contract text can be obtained from the upstream contracting instrument platform, and certainly, the service data can also be obtained from locally stored service data without specific limitation.
The service file may be in PDF format, word format, appearance l format, HTML format, or the like according to a preset rendering format, which is not particularly limited herein. It can be appreciated that in the embodiment of the application, the generation of the service file under various service scenes can be provided, so that the service processing requirements of various industries can be met.
In practical application, the technical scheme of the application can be suitable for application scenes of drafting contract files, so as to be an optional implementation mode, the technical scheme of the application also provides a file generation method, which can comprise the following steps:
acquiring a target template corresponding to the target service based on a contract file initiating instruction triggered by a user; the target template is generated by adjusting a template component in the standard template based on target contract clauses obtained by presetting contract clauses in the target service editing standard template and based on data types related to the target contract clauses;
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 by the corresponding template components to obtain the template instance 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 rapidly and efficiently realized.
Because the target templates are uniformly created by the manager, when the coverage of the target service range is wide, and the service requirements can be diversified based on different clients, or the target service corresponding to the target templates has scenes such as aging limitation, the target templates can be difficult to cover more complex service requirements, so that in order to further improve the drafting efficiency of the service file, the application provides a file generation implementation mode, as follows.
Fig. 4 is a flowchart of an embodiment of a file generating 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.
The target template is generated by adjusting a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on data types related to the target template elements.
402: And 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.
403: And adjusting the drafting template to generate the service file based on target service requirements.
In practical application, after obtaining the target template, the user can adaptively modify and edit the target template elements and the corresponding template components in the target template according to the actual service requirements. It should be noted that, of course, the editing and modifying process needs to be performed based on the parameter attribute set by the target template element and the template component 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 may modify and edit the target template element, and if the editing attribute is in an editable state, any one of the template editing modes described in the foregoing embodiments may be performed to further modify and edit the target template element and the template component, so as to obtain a drafting template of the drafting file suitable for the target service requirement, thereby generating the service file based on the drafting template.
It can be understood that, the user may adjust the drafting template after rendering the service data to generate the service file, or adjust the target template based on the target service requirement preferentially, and then render the service data to generate the service file.
As an alternative embodiment, the adjusting the drafting template to generate the service file based on the target service requirement may include:
Adjusting the drafting template to obtain an adjusting template based on target service requirements;
Determining whether the adjustment template meets the target service requirement;
if yes, generating the service file based on the adjustment template;
And if not, continuing to adjust the adjustment template until the adjustment template meets the target service requirement.
After the user finishes drafting or the target template is possibly modified and adjusted at a plurality of positions, so that in order to facilitate the user to check and examine, the user can check the difference between the latest adjustment template and the target template in a one-piece manner through a difference comparison preview mode so as 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 include:
triggering the difference comparison preview between the adjustment template and the drafting template;
and detecting whether the adjustment template meets the target service requirement or not based on the difference comparison preview.
As an alternative embodiment, the adjusting the drafting template to obtain an adjusting template based on the target service requirement may include:
And editing the target template elements which are in an editable state in the drafting template based on the target service requirement to obtain the adjustment template.
As an alternative embodiment, 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 requirements;
And adding the newly added template elements to the corresponding positions of the drafting templates to obtain the adjustment templates.
As an implementation manner, the determining, based on the target service requirement, the newly added template element to be added may include:
determining keywords corresponding to new template elements to be added based on the target service requirements;
And based on the keywords, retrieving from a preset template element library to obtain the newly added template elements.
As an implementation manner, the retrieving, based on the keyword, the new template element from a preset template element library 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 from a preset template element library to obtain the newly added template elements.
As an alternative embodiment, 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 templates based on the directory navigation to obtain the adjustment templates.
As shown in fig. 5 (a), for a schematic diagram of a target template of a service purchase contract acquired for a target service, an added item is set in a navigation suspension column on the right side in the figure, and a new added item to be added can be retrieved from a item library through a retrieval frame of the added item. The newly added terms are retrieved based on the type of the setting parameters, for example, the keywords such as "my benefits", "confidentiality", "jurisdiction", "performance" and the like are retrieved.
As shown in fig. 5 (b), a schematic diagram of a new term adding operation is shown, in which a position to be added can be selected and determined, the navigation suspension bar is automatically positioned to the position to be added, the bath energy terms retrieved in the suspension navigation bar can be added to the corresponding position of the target contract template by means of dragging or pasting, and the adjustment template is obtained according to the corresponding template component added.
As shown in fig. 5 (c), a schematic diagram of a differential comparison preview of a XXX project service purchase contract template is shown, and a user can perform one-key differential comparison preview by triggering a selection control of "show and template differential information". The gray background content shown in the figure identifies the new content of contract terms, the gray background marked content is deleted content, other forms of identification mobile content, additional terms and the like can be used, a user can quickly know the difference between the modified and adjusted adjustment contract template and the target template through difference comparison preview, and meanwhile, parameter information of the contract terms and contract components can be simultaneously displayed in the right navigation suspension column, so that the user can quickly and accurately check and examine.
In the embodiment of the application, the target template elements and 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, and the efficiency of drafting and approving the service file is further saved by editing operations such as custom modification, addition or deletion, so that the method and the device can be suitable for application scenes of signing service files with high efficiency requirements such as contracts and forms.
It can be understood that the implementation of the template creation method and the file generation method provided by the embodiments of the present application may be applicable to not only the application in the system client scenario created for enterprises and public institutions, but also the application in the scenario where the individual user or the individual merchant needs to generate the service file, for example, the application in the scenario where the application program is created for the mobile phone end or the mobile end, for example, the APP or the applet, etc., so that the individual user may also increase the signing efficiency of the service file at any time, more conveniently and more flexibly, and is not limited herein.
Fig. 6 is a schematic structural diagram of an embodiment of a template creation 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 a preset template element and a template component corresponding to the preset template element.
And the standard template editing module 602 is configured to edit the preset template elements in the standard template based on a target service, so as to obtain target template elements.
And the target template generating module 603 is configured to adjust a template component in the standard template based on the service data type related to the target template element, so as to obtain a target template.
The target template is used for generating a service file based on target service data.
It will be appreciated that the standard template may be a template created based on service requirements prior to service upgrades or service adjustments, or a template created based on current service requirements. Optionally, in some embodiments, the standard template determination module 601 may include:
the preset service file acquisition unit is used for acquiring the preset service file uploaded by the user;
a preset template element obtaining unit, configured to obtain the preset template element based on the preset service file;
A template component obtaining unit, configured to generate a template component corresponding to the preset template element based on a service data type related to the preset template element;
and the standard template creation unit is used for creating the standard template based on the preset template elements and the template component.
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 alternative embodiment, the standard template editing module 602 may include:
the template element to be edited determining unit is used for determining template elements 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 specifically be configured to:
activating a rich text editor corresponding to the template element to be edited;
and based on the rich text editor, performing one or more operations of deleting, splitting, combining or modifying the template element to be edited, and obtaining the target template element.
Alternatively, in some embodiments, the standard template editing module 602 may be specifically configured to:
determining a new template element and a target position of the new template element 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 alternative embodiment, the target template generating module 603 may include:
The service data to be adjusted determining unit is used for determining service data to be adjusted related to the target template element;
and the target template generating unit is used for deleting, adding or moving a 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 alternative embodiment, 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 alternative embodiment, the standard template creation 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 basic template based on the service data type related to the preset template element, so as to obtain the standard template may specifically be used to:
based on the service data type related to the preset template element, adding the template component to a corresponding position in the basic template;
generating a catalog navigation for the base template;
and setting the preset template parameters and the attribute parameters of the template assembly based on the directory navigation to obtain the standard template.
As an alternative implementation mode, the catalog navigation at least comprises a template element catalog navigation and a template component catalog navigation;
The catalog navigation is displayed in a preset navigation bar based on navigation triggering operation.
As an optional implementation manner, the setting the preset template parameters and the attribute parameters of the template component based on the directory navigation, and obtaining the standard template may specifically be used to:
Triggering the catalog navigation to display a template element setting area aiming at a preset template element based on a selection operation aiming at element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the catalog navigation to display a component setting area for the template component based on a selection operation for component setting;
And setting the component type of the template component in the component setting area 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 prompt parameter, and an element association parameter.
As an optional implementation manner, the adjusting the template component in the standard template based on the service data type related to the target template element, so as to obtain the target template may specifically be used to:
adjusting a template component in the standard template based on the service data type related to the target template element;
generating a catalog navigation for the standard template;
and adjusting the parameters of the target template elements and the attribute parameters of the template components based on the catalog navigation to obtain the target template.
In practical application, the technical scheme of the application can be suitable for an application scene of creating a contract template, so as to be an optional implementation manner, the technical scheme of the application also provides a template creating device, which can comprise:
The standard template determining module is used for determining standard templates 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 terms in the standard template based on target service to obtain target contract terms;
the target template generation module is used for adjusting a template component 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 target service data.
The foregoing details of the implementation of the embodiments of the present application have been described in detail, and are not repeated herein.
In the embodiment of the application, when the scenes such as service upgrading or service adjustment occur or the original standard template needs to be adjusted, the target template meeting the service requirement can be quickly and efficiently obtained by flexibly and variously editing the preset template component and the template component in the standard template and setting parameters. Therefore, the creation 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 generating apparatus according to an embodiment of the present application.
The apparatus may include:
the target template obtaining module 701 is configured to obtain a target template corresponding to a target service based on a service file initiation instruction triggered by a user.
The target template is generated by adjusting a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on data types related to the target template elements.
And the file generation module 702 is configured to render target service data corresponding to a template component in the target template in the target service to the target template, and 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 corresponding to the service event based on a service file generation operation corresponding to the service event;
adding the target service data into the target template according to the data format 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 details of the implementation of the embodiments of the present application have been described in detail, and 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 by the corresponding template components to obtain the template instance 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 rapidly and efficiently realized.
Fig. 8 is a schematic structural diagram of an embodiment of a file generating apparatus according to an embodiment of the present application.
The apparatus may include:
The target template obtaining module 801 is configured to obtain a target template corresponding to a target service based on a service file initiation instruction triggered by a user.
The target template is generated by adjusting a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on data types related to the target template elements.
And the file generation module 802 is configured to render target service data corresponding to a template component in the target template in the target service to the target template, and generate a service file.
The file generating module 802 may include:
and the drafting template generating unit 811 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 obtain the drafting template.
And the file generating unit 812 is configured to adjust the drafting template to generate the service file based on the target service requirement.
As an alternative embodiment, the file generating unit 812 may include:
The adjusting template acquisition 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 adjustment template meets the target service requirement or not; if yes, triggering a service file generation unit; and if not, triggering an adjustment template acquisition unit to continuously adjust the adjustment template until the adjustment template meets the target service requirement.
A service file generating unit for generating the service file based on the adjustment template;
After the user finishes drafting or the target template is possibly modified and adjusted at a plurality of positions, so that in order to facilitate the user to check and examine, the user can check the difference between the latest adjustment template and the target template in a one-piece manner through a difference comparison preview mode so as to determine whether the current template meets the target service requirement. Thus, further in some embodiments, the determining unit may be specifically configured to:
triggering the difference comparison preview between the adjustment template and the drafting template;
and detecting whether the adjustment template meets the target service requirement or not based on the difference comparison preview.
As an alternative embodiment, the adjustment template obtaining unit may specifically be configured to:
And editing the target template elements which are in an editable state in the drafting template based on the target service requirement to obtain the adjustment template.
As an alternative embodiment, the adjustment template obtaining unit may specifically be configured to:
Determining new template elements to be added based on the target service requirements;
And adding the newly added template elements to the corresponding positions of the drafting templates to obtain the adjustment templates.
As an implementation manner, the determining, based on the target service requirement, the newly added template element to be added may be specifically used for:
determining keywords corresponding to new template elements to be added based on the target service requirements;
And based on the keywords, retrieving from a preset template element library to obtain the newly added template elements.
As an implementation manner, the retrieving, based on the keyword, the new template element from a 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 from a preset template element library to obtain the newly added template elements.
Optionally, in some embodiments, the adjustment template acquiring unit may specifically be 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 templates based on the directory navigation to obtain the adjustment templates.
The foregoing details of the implementation of the embodiments of the present application have been described in detail, and are not repeated herein.
In the embodiment of the application, the target template elements and 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, and the efficiency of drafting and approving the service file is further saved by editing operations such as custom modification, addition or deletion, so that the method and the device can be suitable for application scenes of signing service files with high efficiency requirements such as contracts and forms.
Fig. 9 is a schematic structural diagram of an embodiment of a computer device according to 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 for execution by the processing component.
The processing assembly 901 may be configured to:
determining a standard template constructed by a template component corresponding to a preset template element;
editing the preset template elements in the standard template based on a target service to obtain target template elements;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template; the target template is used for generating a service file based on target service data.
Wherein the processing component 901 may include one or more processors to execute computer instructions to perform all or part of the steps in the methods described above. Of course, the processing component 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, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component 902 is configured to store various types of data to support operations in a server. The memory component may be implemented by any type or combination of volatile or nonvolatile 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 disk.
Of course, the computer device may naturally also include other components, such as input/output interfaces, communication components, and the like.
The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc.
The communication component is configured to facilitate communication between the server and other devices, either wired or wireless, such as communication with a terminal.
The embodiment of the application also provides a computer readable storage medium storing a computer program, which when executed by a computer can implement the template creation method of the embodiment shown in fig. 1.
Fig. 10 is a schematic structural diagram of an embodiment of a computer device according to 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 provided 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 a template component in the standard template based on target template elements obtained by presetting template elements in the standard template and based on 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.
Wherein the processing component 1001 may include one or more processors to execute computer instructions to perform all or part of the steps in the methods described above. Of course, the processing component 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, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component 1002 is configured to store various types of data to support operations in a server. The memory component may be implemented by any type or combination of volatile or nonvolatile 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 disk.
Of course, the computer device may naturally also include other components, such as input/output interfaces, communication components, and the like.
The embodiment of the application also provides a computer readable storage medium storing a computer program, which when executed by a computer can implement the file generating method of the embodiment shown in fig. 3 and fig. 4.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (29)

1. A template creation method, comprising:
Adding preset template elements into a basic template based on rich text layout according to a preset typesetting format; based on the service data type related to the preset template element, adding a template component of the preset template element to a corresponding position in the basic template; generating a catalog navigation for the base template; setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain a standard template;
editing the preset template elements in the standard template based on a target service to obtain target template elements;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template;
The target template is used for generating a service file based on target service data.
2. The method as recited in claim 1, further comprising:
acquiring a preset service file uploaded by a user;
Acquiring the preset template elements based on the preset service file;
And generating a template component corresponding to the preset template element based on the service data type related to the preset template element.
3. The method of claim 2, wherein the obtaining the preset template element 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 of claim 1, wherein editing the preset template element in the standard template to obtain a target template element comprises:
Determining template elements to be edited in the preset template elements based on the target service;
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 of the editing operation for the template element to be edited comprises:
activating a rich text editor corresponding to the template element to be edited;
and based on the rich text editor, performing one or more operations of deleting, splitting, combining or modifying the template element to be edited, and obtaining the target template element.
6. The method of claim 5, wherein the obtaining the target template element based on the rich text editor performing one or more of a delete, split, merge, or modify the template element to be edited comprises:
Based on the rich text editor, moving a template element split character corresponding to the template element to be edited to a target split position of the template element to be edited;
and executing splitting operation on the template element to be edited at the target splitting position to obtain the target template element.
7. The method of claim 6, wherein the moving the template element splitter corresponding to the template element to be edited to the target split 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 template element splitting symbol in the template element to be edited;
When the template element split symbol is detected to move to a second split position of the template element to be edited, combining the front template element and the rear template element at the first split position, and taking the second split position as the target split position.
8. The method of claim 1, wherein editing the preset template element in the standard template to obtain a target template element comprises:
determining a new template element and a target position of the new template element 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 the template component in the standard template based on the service data related to the target template element, obtaining a target template comprises:
determining service data to be adjusted, which are related to the target template element;
and deleting, adding or moving a 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 of claim 9, 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;
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.
11. The method of claim 1, wherein the setting the preset template parameters and the attribute parameters of the template component based on the directory navigation, obtaining the standard template comprises:
Triggering the catalog navigation to display a template element setting area aiming at a preset template element based on a selection operation aiming at element setting;
setting element attribute parameters of the preset template elements in the template element setting area;
triggering the catalog navigation to display a component setting area for the template component based on a selection operation for component setting;
And setting the component type of the template component in the component setting area to obtain the standard template.
12. The method of claim 11, wherein the element attribute parameters comprise:
One or more of a tag parameter, an edit status parameter, a risk prompt parameter, and an element association parameter.
13. The method of claim 11, wherein the adjusting the template component in the standard template based on the service data type related to the target template element, obtaining the target template comprises:
adjusting a template component in the standard template based on the service data type related to the target template element;
generating a catalog navigation for the standard template;
and adjusting the parameters of the target template elements and the attribute parameters of the template components based on the catalog navigation to obtain the target template.
14. The method according to any one of claim 1 or claim 13, wherein the directory navigation includes at least a template element directory navigation and a template component directory navigation;
The catalog navigation is displayed in a preset navigation bar based on navigation triggering operation.
15. A document generation method, comprising:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; wherein the target template is created according to the method of any one of claims 1 to 14;
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.
16. The method of claim 15, wherein rendering the target service data of the target service corresponding to the template component in the target template into the target template, and generating a service file comprises:
Rendering target service data corresponding to a 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 target service requirements.
17. The method of claim 16, wherein adjusting the drafting template to generate a service file based on a target service requirement comprises:
Adjusting the drafting template to obtain an adjusting template based on target service requirements;
Determining whether the adjustment template meets the target service requirement;
if yes, generating the service file based on the adjustment template;
And if not, continuing to adjust the adjustment template until the adjustment template meets the target service requirement.
18. The method of claim 17, wherein determining whether the adjustment template meets the target service requirement comprises:
triggering the difference comparison preview between the adjustment template and the drafting template;
and detecting whether the adjustment template meets the target service requirement or not based on the difference comparison preview.
19. The method of claim 17, wherein adjusting the drafting template to obtain an adjustment template based on target service requirements comprises:
And editing the target template elements which are in an editable state in the drafting template based on the target service requirement to obtain the adjustment template.
20. The method of claim 17, wherein adjusting the drafting template to obtain an adjustment template based on target service requirements comprises:
Determining new template elements to be added based on the target service requirements;
And adding the newly added template elements to the corresponding positions of the drafting templates to obtain the adjustment templates.
21. The method of claim 20, wherein determining an newly added template element to be added based on the target service requirement comprises:
determining keywords corresponding to new template elements to be added based on the target service requirements;
And based on the keywords, retrieving from a preset template element library to obtain the newly added template elements.
22. The method of claim 21, wherein retrieving the new template element from a library of preset 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 from a preset template element library to obtain the newly added template elements.
23. The method of claim 17, wherein adjusting the drafting template to obtain an adjustment template based on target service requirements 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 templates based on the directory navigation to obtain the adjustment templates.
24. A template creation method, comprising:
Adding preset template elements into a basic template based on rich text layout according to a preset typesetting format; based on the service data type related to the preset template element, adding a template component of the preset template element to a corresponding position in the basic template; generating a catalog navigation for the base template; setting the preset template parameters and the attribute parameters of the template assembly based on the catalog navigation to obtain a standard template, wherein the preset template elements are preset contract clauses;
Editing the preset contract terms in the standard template based on target service to obtain target contract terms;
Based on the service data type related to the target contract clause, adjusting a template component in the standard template to obtain a target template;
the target template is used for generating a contract file based on target service data.
25. A document generation method, comprising:
acquiring a target template corresponding to a target service based on a contract file initiating instruction triggered by a user; wherein the target template is created according to the method of any one of claims 1 to 14, and the preset template elements are preset 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.
26. A template creation apparatus, comprising:
The standard template determining module is used for adding preset template elements into the basic template based on the rich text layout according to a preset typesetting format; based on the service data type related to the preset template element, adding a template component of the preset template element to a corresponding position in the basic template; generating a catalog navigation for the base template; setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain a standard template;
The standard template editing module is used for editing the preset template elements in the standard template based on the target service to obtain target template elements;
the target template generation module is used for adjusting a template component 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.
27. A document generating apparatus, comprising:
The target template acquisition module is used for acquiring a target template corresponding to the target service based on a service file initiation instruction triggered by a user; wherein the target template is created according to the method of any one of claims 1 to 14;
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.
28. 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 being called by the processing component for execution;
The processing assembly is configured to:
adding preset template elements into a basic template based on rich text layout according to a preset typesetting format; based on the service data type related to the preset template element, adding a template component of the preset template element to a corresponding position in the basic template; generating a catalog navigation for the base template; setting the preset template parameters and the attribute parameters of the template components based on the directory navigation to obtain a standard template; editing the preset template elements in the standard template based on a target service to obtain target template elements;
Based on the service data type related to the target template element, adjusting a template component in the standard template to obtain a target template;
The target template is used for generating a service file based on target service data.
29. 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 being called by the processing component for execution;
The processing assembly is configured to:
acquiring a target template corresponding to a target service based on a service file initiating instruction triggered by a user; wherein the target template is created according to the method of any one of claims 1 to 14;
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 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 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 Template creation method, file generation method, device and computer equipment

Publications (2)

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

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109635257A (en) * 2018-10-30 2019-04-16 深圳壹账通智能科技有限公司 A kind of configuration method and device of contract template

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109635257A (en) * 2018-10-30 2019-04-16 深圳壹账通智能科技有限公司 A kind of configuration method and device of contract template

Similar Documents

Publication Publication Date Title
US11010537B2 (en) Web-intrinsic interactive documents
CN112632942B (en) Document processing method, device, equipment and medium
US11989392B2 (en) Embedding productivity applications in third party platforms
RU2714609C1 (en) Automation of document generation
US11870738B2 (en) Conversation-enabled document system and method
US20170169461A1 (en) Promotion system and promotion method
US10657206B2 (en) Graphical user interface system and method for natural language generation editing
CN108762760A (en) Software interface customizing method, device, computer equipment and storage medium
US20070067714A1 (en) Modularized web page editing system and method thereof
CN105719049B (en) Method and system for realizing intelligent log
CN113886340A (en) File generation method and system, storage medium and electronic device
CN113535749A (en) Query statement generation method and device
US10885013B2 (en) Automated application lifecycle tracking using batch processing
CN101894021A (en) Method and system for realizing interface of embedded system
US11663199B1 (en) Application development based on stored data
CN113033171B (en) Template creation method, file generation method, device and computer equipment
US20130238396A1 (en) Method, system and apparatus for designing assessment report
KR102463120B1 (en) Patent document searching server providing user customized flle name generating function when dowloading document and patent document searching method using thereof
CN109543166A (en) Generation method, server and the computer readable storage medium of house property poster template
CN113033171A (en) Template creating method, file generating method, device and computer equipment
KR101862178B1 (en) Method for customized posting and server implementing the same
CN108875070B (en) Method, equipment and system for setting message-leaving type web page
US20230394714A1 (en) Synthesizing visualizations for content collections
CN114218468A (en) Spreadjs-based data capture display method
CN116301788A (en) Webpage configuration method, webpage configuration device and readable storage medium

Legal Events

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