Data processing method and apparatus, terminal device, and computer-readable storage medium
By displaying an approval process template selection interface in the enterprise management system, administrators are allowed to copy processes from existing templates, which solves the problem of low efficiency in creating or modifying approval templates and achieves efficient template editing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2021-01-19
- Publication Date
- 2026-05-22
AI Technical Summary
In existing technologies, enterprise administrators have low efficiency in creating or modifying approval templates and cannot efficiently set up approval processes.
By displaying an approval process template selection interface, administrators can copy processes from existing templates to generate target approval templates, thus improving editing efficiency.
It enables quick copying of approval processes from existing templates, improving the efficiency of creating or modifying approval templates and reducing the time spent on manual settings.
Smart Images

Figure CN114818634B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, terminal device, and computer-readable storage medium. Background Technology
[0002] To facilitate efficient management across enterprises, approval processes are an essential tool. Administrators can set up approval templates for various business processes, making it convenient for employees and allowing leaders to understand the company's situation. Currently, administrators set up approval processes sequentially according to the node order, which reduces the efficiency of creating or modifying approval templates.
[0003] Therefore, how to improve the efficiency of creating or modifying approval templates has become an urgent technical problem to be solved. Summary of the Invention
[0004] This application provides a data processing method, apparatus, terminal device, and computer-readable storage medium, which can improve the efficiency of enterprise administrators in editing approval templates.
[0005] One embodiment of this application discloses a data processing method, the method comprising:
[0006] The approval process template selection interface is displayed. The approval process template selection interface includes the template names of multiple approval templates. Each approval template includes an approval process template. Each approval template is an approved template that has been created under the organization.
[0007] When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed, and the first approval template belongs to the multiple approval templates;
[0008] When there is an edit operation on the first approval process template, the edited first approval process template is displayed. The edited first approval process template is used to generate the target approval template, which is an existing approval template under the organization.
[0009] One embodiment of this application discloses a data processing apparatus, which includes:
[0010] The display unit is used to display the approval process template selection interface. The approval process template selection interface includes the template names of multiple approval templates. Each approval template includes an approval process template. Each approval template is an approved template that has been created under the organization.
[0011] The display unit is further configured to display the first approval process template of the first approval template when the template name of the first approval template is selected, wherein the first approval template belongs to the plurality of approval templates;
[0012] The display unit is further configured to display the first approval process template after the editing operation when there is an editing operation on the first approval process template. The first approval process template after the editing operation is used to generate a target approval template, which is an existing approval template under the organization.
[0013] One embodiment of this application discloses a terminal device, which includes: a processor adapted to implement one or more instructions; and a computer storage medium storing one or more instructions, the one or more instructions being adapted to be loaded by the processor and executed by the above-described data processing method.
[0014] One embodiment of this application discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the aforementioned data processing method.
[0015] One embodiment of this application discloses a computer product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal device to perform the aforementioned data processing method.
[0016] In this embodiment, an approval process template selection interface is displayed. This interface includes multiple approval template names, each containing an approval process template. Each approval template is an existing approval template belonging to an organization. When the template name of the first approval template is selected, the first approval process template of that first approval template is displayed. This first approval template belongs to the multiple approval templates. When an editing operation is performed on the first approval process template, the edited first approval process template is displayed. This edited first approval process template is used to generate a target approval template, which is an existing approval template belonging to the organization. By setting the approval process of the target approval template using this method, approval processes can be copied from existing approval process templates, thereby improving the efficiency of editing approval templates. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating how to edit an approval process template, as disclosed in an embodiment of this application.
[0019] Figure 2 This is a flowchart illustrating a data processing method disclosed in an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of an approval process setting interface disclosed in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of an approval process template selection interface disclosed in an embodiment of this application;
[0022] Figure 5 This is a schematic diagram showing a preview of an approval process template disclosed in an embodiment of this application;
[0023] Figure 6 This is a schematic diagram of a replacement prompt box for an approval process template disclosed in an embodiment of this application;
[0024] Figure 7 This is a flowchart illustrating another data processing method disclosed in an embodiment of this application;
[0025] Figure 8 This is a schematic diagram of an approval main interface disclosed in an embodiment of this application;
[0026] Figure 9 This is a schematic diagram of an approval template selection interface disclosed in an embodiment of this application;
[0027] Figure 10 This is a schematic diagram of an approval text template editing interface disclosed in an embodiment of this application;
[0028] Figure 11 This is a schematic diagram of another approval text template editing interface disclosed in an embodiment of this application;
[0029] Figure 12 This is a flowchart illustrating another data processing method disclosed in the embodiments of this application;
[0030] Figure 13 This is a schematic diagram of another approval text template editing interface disclosed in the embodiments of this application;
[0031] Figure 14 This is a schematic diagram of an approval rule setting interface disclosed in an embodiment of this application;
[0032] Figure 15 This is a schematic diagram of the structure of a data processing device disclosed in an embodiment of this application;
[0033] Figure 16 This is a schematic diagram of the structure of a terminal device disclosed in an embodiment of this application. Detailed Implementation
[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0035] The data processing method in this embodiment specifically includes: displaying an approval process template selection interface, which includes template names for multiple approval templates, each approval template including an approval process template, and each approval template being an existing approval template under the organization; when the template name of the first approval template is selected, displaying the first approval process template of the first approval template, which belongs to the multiple approval templates; when there is an editing operation on the first approval process template, displaying the edited first approval process template, which is used to generate a target approval template, which is an existing approval template under the organization. By setting the approval process of the target approval template using this method, the approval process can be copied from existing approval process templates, thereby improving the efficiency of editing approval templates. The corresponding flowchart for editing the approval process template can be as follows: Figure 1 As shown, the user edits the approval process template. The server retrieves the approval process templates of the current organization and displays them on the terminal device interface. The user selects the template name of the approval process template they want to copy and confirms whether to overwrite the original approval process template. If not, the user exits the settings for the approval process template. If they choose to overwrite, the original approval process template is overwritten in the approval process settings interface. The user then continues to edit the approval process template on the replaced template and saves the edited approval process template as the target approval template.
[0036] In one possible implementation, the data processing method can be implemented on a terminal device, which may be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart car, etc., but is not limited to these.
[0037] The approval template mainly consists of two parts: an approval text template and an approval process template. The approval text template includes the necessary conditions for editing the approval template. For example, a leave approval template would include the leave date, reason for leave, and total leave duration. The approval process template includes different approval nodes, such as the applicant, approver, and copy recipients. For example, in financial approval, the applicant is the salesperson. The salesperson generates a settlement statement and submits it to the approver node. Relevant approvers approve sequentially or simultaneously according to the approval process. After approval, the settlement statement is transferred to the finance cashier for payment.
[0038] In one possible implementation, this data processing method can be applied to various enterprise management systems, specifically targeting enterprise administrators. When an administrator creates or modifies an approval template, they edit the approval process template. This method allows administrators to quickly copy an existing approval process template into the currently edited template, eliminating the need for manual addition of approvers and copy recipients according to the enterprise's needs. For larger enterprises with numerous conditional approval nodes, manually adding nodes cannot guarantee accuracy and requires individual checking, wasting considerable time. This application overcomes this problem by copying existing approval process templates to create or modify new ones, thereby improving the efficiency of approval template editing.
[0039] Please see Figure 2 , Figure 2 This is a flowchart illustrating a data processing method disclosed in an embodiment of this application. This data processing method can be executed by a terminal device, which can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart wearable device, or other device with display capabilities. This embodiment of the application does not limit the scope of the terminal device. The data processing method specifically includes the following steps:
[0040] S201. Display the approval process template selection interface. The approval process template selection interface includes the template names of multiple approval templates. Each approval template includes an approval process template. Each approval template is an approved template that has been created under the organization.
[0041] The approval process template selection interface is displayed after the user triggers the settings control in the approval process settings interface. This interface can either cover the approval process settings interface or be displayed anywhere within it. In this embodiment, "user" refers to a backend administrator; in some application scenarios, such as enterprise management, "user" refers to the enterprise administrator. The settings control can be a control displaying the phrase "Copy process from existing template," indicating that its purpose is to copy the process from an existing template.
[0042] Optionally, the approval process settings interface includes an approval process template. This template can be the one created by the user or the one modified from an existing template. If it's the former, the interface displays a default template; if it's the latter, the interface displays the original template (the original template corresponding to the existing template). Users can customize this template in the settings interface, specifically by adding or modifying approval nodes in the default or original template.
[0043] For example, the approval process settings interface can be specifically as follows: Figure 3 As shown, Figure 3 This is a schematic diagram of an approval process settings interface disclosed in an embodiment of this application. Figure 3The image shows the approval process settings interface for an approval template named "Template A". This interface includes controls for "Copy Process from Existing Template", "Save", "Cancel", and "Submit", as well as an approval process template (which can be the default, the original, or a modified template). This template includes settings for the applicant, approver, and recipients. Users can customize each option in the template. Clicking the "Copy Process from Existing Template" control displays the approval process template selection interface. Clicking the "Save" control sends the approval process template from the settings interface to the server, allowing the server to save the process. Users (such as enterprise administrators) can view and modify this template at any time by clicking the template name "Template A". Clicking the "Cancel" control will not save the approval process template. Optionally, when a user clicks the "Cancel" control, they will be redirected to another interface; when the user clicks the "Submit" control, the terminal device will submit the approval template generated according to the approval process template to the server for saving. For a company, the approval template submitted to the server will be displayed to company employees on a front-end page, and employees can use their own devices to fill in and submit the approval template.
[0044] In one possible implementation, when a user clicks the settings control on the approval process settings interface, an approval process template selection interface will be displayed. This interface includes multiple approval template names, each containing an approval process template. Each approval template is a created template belonging to an organization, meaning that all templates are stored on the server and associated with the organization. The organization can be a company, a university, or other similar institutions. Optionally, the multiple template names in the approval process template selection interface are categorized into different groups according to specified tags. These tags can be user-defined or automatically categorized by the server based on the type of approval template corresponding to the template name (i.e., categorization by naming). In other words, each tag includes multiple unique approval template names.
[0045] For example, the approval process template selection interface can be specifically as follows: Figure 4 As shown, Figure 4This is a schematic diagram of an approval process template selection interface disclosed in an embodiment of this application. 400 includes multiple approval template names and multiple tags such as Tag 1, Tag 2, Tag 3, and Tag 4. For example, 401 is Tag 1, 402 is Tag 2, and 403 is Tag 3. Each tag also includes multiple approval template names; for example, tag 401 includes multiple approval template names. The template names of the multiple approval templates are: Template 1, Template 2, Template 3, Template 4, Template 5, and Template 6. The template name corresponding to approval template 1 is Template 1, the template name corresponding to approval template 2 is Template 2, and so on. It should be noted that... Figure 4 Not all tags and template names are shown; they are only provided as examples.
[0046] S202. When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed. The first approval template belongs to multiple approval templates.
[0047] In one possible implementation, when the user selects the template name of the first template in the approval process template selection interface, the first approval process template is displayed on the approval process settings interface.
[0048] For example, the user clicked Figure 4 The template name of the approval template a shown (in) Figure 4 If the template name for the approval template 'a' is: Template a), then accordingly, it will be... Figure 3 The approval process settings interface shown displays the approval process template for approval template a.
[0049] In one possible implementation, when a preview operation for the template name of the first approval template exists in the approval process template selection interface, the first approval process template of the first approval template will be displayed in a floating window. The preview operation can refer to the user placing the cursor at the template name of the first approval template, and the floating window can be a semi-transparent interface that disappears when the user's cursor leaves the template name. This preview method allows users to quickly see the approval process template corresponding to each approval template, enabling faster selection and efficient setup of the approval process.
[0050] For example, the preview interface can be specifically as follows: Figure 5 As shown, Figure 5 This is a preview interface diagram of an approval process template disclosed in an embodiment of this application, wherein 510 is the approval process setting interface and 520 is the approval process template selection interface. Figure 5The approval process template selection interface 520 shown is located in the upper left corner of the approval process setting interface 510. This position is relative, meaning the approval process template selection interface 520 can also be located in other positions. When the cursor is placed at the position of template b (i.e., the template name of approval template b), then... Figure 5 The interface shown displays a floating window 501, which displays the approval process template corresponding to approval template b, including the pre-set applicants: A, B, C, D; approver: A; and copy recipients: B, C. If the user confirms that the approval process template meets their needs through preview, they can click on template b (i.e., the template name of approval template b) to display the approval process template on the approval process settings interface.
[0051] In one possible implementation, when the template name of the first approval template is selected, a confirmation prompt box will also be displayed on the terminal interface to prompt the user whether to use the first approval process template corresponding to the first approval template to overwrite the current approval process template.
[0052] For example, it can be like Figure 6 As shown, when the user clicks Figure 6 The template b shown, i.e., the template name of approval template b, will display a prompt box 601 on the interface. The prompt box 601 includes the prompt "The approval process template of the selected approval template will overwrite the current approval process template. Do you want to continue?" The prompt box also includes a "confirm" control and a "cancel" control. If the user clicks the "confirm" control, the approval process template of the selected approval template will overwrite the current approval process template. If the user clicks the "cancel" control, the prompt box will disappear, and the current approval process template will not be changed.
[0053] S203. When there is an editing operation on the first approval process template, the first approval process template after the editing operation is displayed. The first approval process template after the editing operation is used to generate the target approval template, which is the approval template that has been created under the organization.
[0054] In one possible implementation, after the first approval process template is displayed in the approval process settings interface, when there is an editing operation on the first approval process template, the edited first approval process template is displayed. The edited first approval process template is used to generate the target approval template and send the target approval template to the server to establish the association between the target approval template and the organization, that is, the target approval template is a created approval template under the organization.
[0055] In one possible implementation, if there is no editing operation for the first approval process template in the approval process settings interface, it proves that the approval process template just meets the user's needs, and the first approval process template can be directly used to generate the target approval template.
[0056] Furthermore, the terminal device will send the target approval template to the server so that the server can associate and store the target approval template with the organization's identifier. Correspondingly, when the user triggers the approval process template selection interface again, the template name of the target approval template will also be displayed in the approval process template selection interface.
[0057] In this embodiment, an approval process template selection interface is displayed. This interface includes multiple approval template names, each containing an approval process template. Each approval template is an existing approval template belonging to an organization. When the template name of the first approval template is selected, the first approval process template of that first approval template is displayed. This first approval template belongs to the multiple approval templates. When an editing operation is performed on the first approval process template, the edited first approval process template is displayed. This edited first approval process template is used to generate a target approval template, which is an existing approval template belonging to the organization. By setting the approval process of the target approval template using this method, approval processes can be copied from existing approval process templates, thereby improving the efficiency of editing approval templates.
[0058] based on Figure 2 In addition to the method for editing the approval process template described herein, this application also proposes a data processing method, please refer to [link / reference needed]. Figure 7 , Figure 7 This is a flowchart illustrating another data processing method disclosed in an embodiment of this application. This data processing method can be executed by a terminal device, specifically describing the process steps for creating a new approval template. Creating a new approval template includes two methods: steps S701 to S706 represent creating a target approval template based on an existing approval template; steps S701 and S707 to S711 represent creating a user-defined target approval template. Specifically, it may include:
[0059] S701. When an organization's approval template creation operation is detected, the approval template selection interface is displayed, which includes the template names of multiple approval templates.
[0060] In one possible implementation, the main approval interface of the approval application is displayed, and the creation of the organization's approval template can be triggered in the main approval interface.
[0061] For example, Figure 8This is a schematic diagram of an approval main interface disclosed in the application embodiment. Users (administrators) can choose to close or open the application (i.e., the approval function). The approval main interface also includes the visible scope of the application, the corresponding administrator, and the responsible person. The visible scope refers to the personnel within that scope who have permission to access the approval main interface and the relevant configurations of the approval templates. The administrator and responsible person of the approval application refer to these personnel who can create and manage approval templates within the approval application. 801 on the approval main interface is "Add Template." Clicking "Add Template" allows the user to create a new approval template for the organization. Specifically, after clicking 801, the approval template selection interface will be displayed. Optionally, the approval main interface also includes a "Grouping and Sorting" control, which is used by users to set labels for approval templates and sort various labels.
[0062] In one possible implementation, when a new approval template creation operation is detected for an organization, the terminal device sends a data request to the server. This allows the server to retrieve multiple approval templates based on the organization's identifier. Once the server obtains the multiple approval templates, it sends them to the terminal device. Each approval template carries a template name. The terminal device then displays an approval template selection interface, showing the template names of the received multiple approval templates. Each template has a corresponding label, placed under different labels, allowing the user to select an approval template based on the labels. Each approval template is a previously created approval template under the organization, i.e., an approval template stored within the organization. The user can click on the template name of one of the multiple approval templates to create a new approval template. Optionally, the approval template selection interface can include the template names of multiple approval templates and the template names of recommended approval templates. The recommended approval templates are those retrieved from the internet by the server based on the industry type selected during the organization's registration when the terminal device detects a new approval template creation operation for the organization. The user can click on the template name of a recommended approval template to create an approval template. In some embodiments, the main approval interface also includes a new control, which users can click to create an approval template. Optionally, the approval template selection interface can be displayed as a pop-up window on the main approval interface, or it can be a new interface that overlays the main approval interface.
[0063] For example, the approval template selection interface can be specifically as follows: Figure 9 As shown, Figure 9 This is a schematic diagram of an approval template selection interface disclosed in an embodiment of this application. Figure 9The approval template selection interface shown includes two options: "Add from recommended templates" and "Copy from existing templates." Each of these options contains multiple approval templates. The "Add from recommended templates" option includes templates retrieved and recommended from the internet based on the organization type selected during registration. The "Copy from existing templates" option includes approval templates already present in the organization's database, and these templates have been categorized by the user, with each template having a corresponding tag group.
[0064] S702. When the template name of the second approval template is selected, the second approval text template of the second approval template is displayed.
[0065] In one possible implementation, when the template name of the second approval template is selected in the approval template selection interface, the second approval text template of the second approval template is displayed in the approval text template editing interface, that is, the target approval template is created based on the existing approval template. For example, when the user clicks... Figure 9 The option "Copy from existing template" is shown. Clicking on template 2, which is the template name of approval template 2, will display the approval text template of approval template 2 in the approval text template editing interface.
[0066] For example, the second approval document template can be specifically as follows: Figure 10 As shown, Figure 10 This is a schematic diagram of an approval text template editing interface disclosed in an embodiment of this application. Specifically, it shows that when a user clicks on the business trip approval in the approval template selection interface, the corresponding approval text template for the business trip is displayed, including the business trip reason input box, the business trip location input box, the business trip start time selection option, the business trip end time selection option, the business trip duration setting option, etc.
[0067] Optionally, when a preview operation for the second approval template exists in the approval template selection interface, the approval text template of the second approval template is displayed in a floating window. Specifically, when the cursor is placed at the template name position of the second approval template, the second approval text template of the second approval template is displayed in the floating window to facilitate faster editing of the approval text template. The floating window can be displayed as follows: Figure 5 As shown.
[0068] S703. When there is an editing operation on the second approval text template, display the second approval text template after the editing operation.
[0069] In one possible implementation, the user can also edit the second approval text template. When an editing operation on the second approval text template is detected, the edited second approval text template is displayed.
[0070] For example, users can Figure 10 The user can modify the approval text template editing interface as shown. Specifically, 1001 modifies the template name, and 1002 modifies the template grouping. Users can also add or delete controls as needed. After editing, clicking 1003 saves the content of the interface.
[0071] S704. When the second approval text template or the second approval text template after the editing operation is saved and the setting control corresponding to the approval process template is triggered, the approval process template selection interface is displayed.
[0072] S705. When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed.
[0073] S706. When there is an editing operation on the first approval process template, display the first approval process template after the editing operation, and generate the target approval template based on the second approval text template and the first approval process template after the editing operation, or generate the target approval template based on the second approval text template after the editing operation and the first approval process template after the editing operation.
[0074] Among them, steps S704 to S706 and Figure 2 The steps in the relevant embodiments described are the same, so they will not be repeated here. The target approval template included here can be composed of a second approval text template and a first approval process template after editing, or it can be composed of a second approval text template after editing and a first approval process template after editing.
[0075] Furthermore, users must also set the target approval template as an existing template for the organization, thus establishing a link between the target approval template and the organization. Since this target approval template is generated after detecting the creation of a new approval template for the organization, both the target approval template and the multiple approval templates in the approval template selection interface are existing approval templates under the organization, meaning that a new approval template has been added to the organization.
[0076] Steps S701 to S706 involve the user creating a target approval template based on an existing approval template selected from the approval template selection interface. This method allows for the rapid creation of a new approval template.
[0077] S707. When the new control included in the approval template selection interface is triggered, the approval text template editing interface is displayed.
[0078] In one possible implementation, when the new control included in the approval template selection interface is triggered, the approval text template editing interface is displayed. This method allows users to create approval templates in a customized manner, and the content of the text template editing interface needs to be filled in by the user according to their needs. For example, the new control could be... Figure 9 The "Custom Template" control 901 shown will display the approval text template editing interface when the user clicks on 901.
[0079] For example, when a new control is triggered, the displayed approval text template editing interface can be specifically as follows: Figure 11 As shown, the approval text template editing interface is currently empty; the template name, template icon, and template groups all require user editing. Users also need to add template content by adding controls as needed.
[0080] S708. Obtain the initial approval text template. The initial approval text template is created in the approval text template editing interface.
[0081] Since users create approval templates by triggering a new control, there is no content in the approval text template editing interface. Therefore, users need to create the corresponding initial approval text template in the approval text template editing interface. After editing and saving, the initial approval text template will be saved on the server.
[0082] S709. When the initial approval text template is saved and the setting control corresponding to the approval process template is triggered, the approval process template selection interface is displayed.
[0083] S710. When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed.
[0084] S711. When there is an editing operation on the first approval process template, display the first approval process template after the editing operation, and generate the target approval template based on the initial approval text template and the first approval process template after the editing operation.
[0085] Among them, steps S709 to S711 and Figure 2 The steps in the relevant implementation examples are the same, so they will not be repeated here. The target approval template here consists of an initial approval text template and a first approval process template after editing.
[0086] Steps S701, S707 to S711 describe how users create a target approval template. The approval text target is user-defined, and the approval process template is copied by the user from an existing approval process template. Therefore, it also saves time in creating the approval template to a certain extent.
[0087] In this embodiment, when a new approval template creation operation of an organization is detected, an approval template selection interface is displayed. This interface includes multiple template names for approval templates. On one hand, when the template name of the second approval template is selected, the second approval text template is displayed, and a target approval template is generated based on the second approval text template and the edited first approval process template. On the other hand, when the new creation control included in the approval template selection interface is triggered, an approval text template editing interface is displayed, an initial approval text template is obtained, and a target approval template is generated based on the initial approval text template and the edited first approval process template. Both aspects involve creating a new approval template; the steps for creating the approval text template differ, but the creation steps corresponding to the approval process are the same. Figure 2 The illustrated examples are the same; therefore, both methods of creating approval templates can improve the efficiency of creating approval templates.
[0088] based on Figure 2 In addition to the method for editing the approval process template described herein, this application also proposes a data processing method, please refer to [link / reference needed]. Figure 12 , Figure 12 This is a flowchart illustrating another data processing method disclosed in an embodiment of this application. This data processing method can be executed by a terminal device, and specifically describes the process steps for modifying an existing approval template, which may include:
[0089] S1201. When an adjustment operation is detected for the third approval template, the third approval text template of the third approval template is displayed.
[0090] In one possible implementation, the adjustment operation for the third approval template is triggered on the main approval interface. That is, if the user clicks on the template name of the third approval template on the main approval interface, the third approval text template will be displayed. Correspondingly, clicking on the template name of the third approval template will also display the application record interface and the rule settings interface. The application record interface is for administrators to easily view approved application records; the template settings interface is used to configure the approval text template; and the rule settings interface is used to configure the scope, permissions, etc., involved in a specific approval.
[0091] For example, when an adjustment operation is detected for the third approval template, the settings interface for the third approval template is displayed, which can be as follows: Figure 13 As shown, Figure 13Specifically, this displays the approval document template interface for business trips. Users can customize the approval document template according to their needs. This interface also includes a "Application Record" button 1301 (when the user clicks 1301, the displayed interface includes the applicant and application time of the application record, etc.) and a "Rule Settings" button 1302. Clicking 1302 displays the following interface... Figure 14 As shown, the interface includes the visible area corresponding to the "Business Trip" approval template, the approval process setting control 1401 for "Business Trip," and exception handling for the "Business Trip" approval template. When the user clicks the approval process setting control 1401, it will be displayed. Figure 3 The corresponding approval process settings interface.
[0092] S1202. When there is an editing operation on the third approval text template, display the third approval text template after the editing operation.
[0093] In one possible implementation, when an edit operation is performed on the third approval text template, the edited third approval text template is displayed. For example, when a user... Figure 13 If the user has edited the third approval text template in the corresponding interface, the edited third approval text template will be displayed on the interface. Alternatively, in some embodiments, if the user does not edit the third approval text template, the original third approval text template can be used directly as the edited third approval text template.
[0094] S1203. When the third approval text template or the third approval text template after editing is saved and the setting control corresponding to the approval process template is triggered, the approval process template selection interface is displayed.
[0095] Specifically, when the third approval text template or the edited third approval text template is saved and the corresponding settings control for the approval process template is triggered, the approval process settings interface will be displayed. Furthermore, when the user triggers the settings control for the approval process template within the approval process settings interface, the approval process template selection interface will be displayed. The settings control for the approval process template within the approval process settings interface can be... Figure 3 The "Copy from Existing Template" control shown.
[0096] S1204. When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed.
[0097] S1205. When there is an editing operation on the first approval process template, display the first approval process template after the editing operation, and generate the target approval template based on the third approval text template and the first approval process template after the editing operation, or generate the target approval template based on the third approval text template after the editing operation and the first approval process template after the editing operation.
[0098] Steps S1203 to S1205 and Figure 2 The steps in the corresponding embodiments are the same, so they will not be repeated here. The target approval template can be composed of the third approval text template and the first approval process template after the editing operation, or it can be composed of the third approval text template after the editing operation and the first approval process template after the editing operation. Here, the target approval template is the adjusted third approval template.
[0099] Optionally, the terminal device may send the target approval template to the server for storage, thereby establishing a link between the target approval template and the organization. Since this target approval template is generated after detecting an organizational adjustment, both the target approval template and all other approval templates except the third one are existing approval templates belonging to the organization. Specifically, the number of approval templates remains unchanged; only the existing templates have been modified.
[0100] In this embodiment, when an adjustment operation is detected for the third approval template, the third approval text template is displayed. When an editing operation is detected for the third approval text template, the edited third approval text template is displayed. The target approval template is generated based on the edited third approval text template and the edited first approval process template. This method improves the efficiency of modifying approval templates.
[0101] Based on the embodiments of the data processing method described above, this application also provides a schematic diagram of the structure of a data processing apparatus. See also... Figure 15 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 15 The data processing device shown can operate the following units:
[0102] Display unit 1501 is used to display the approval process template selection interface. The approval process template selection interface includes the template names of multiple approval templates. Each approval template includes an approval process template. Each approval template is an approved template created under the organization.
[0103] The display unit 1501 is also used to display the first approval process template of the first approval template when the template name of the first approval template is selected, wherein the first approval template belongs to the plurality of approval templates;
[0104] The display unit 1501 is further configured to display the first approval process template after the editing operation when there is an editing operation on the first approval process template. The first approval process template after the editing operation is used to generate a target approval template, which is an existing approval template under the organization.
[0105] In one possible implementation, the display unit 1501 is further configured to:
[0106] When the organization's approval template creation operation is detected, the approval template selection interface is displayed, which includes the template names of multiple approval templates;
[0107] When the template name of the second approval template is selected, the second approval text template of the second approval template is displayed. The second approval template belongs to the plurality of approval templates. The target approval template includes the second approval text template and the first approval process template after the editing operation.
[0108] In one possible implementation, the approval template selection interface further includes a new control; the display unit 1501 is also used to display the approval text template editing interface when the new control is triggered.
[0109] The acquisition unit 1502 is used to acquire an initial approval text template, which is created in the approval text template editing interface. The target approval template includes the initial approval text template and the first approval process template after the editing operation.
[0110] In one possible implementation, the sending unit 1503 is configured to send a data request to the server so that the server obtains the plurality of approval templates based on the organization identifier of the organization, wherein the data request includes the organization identifier of the organization and each approval template carries a template name;
[0111] The receiving unit 1504 is used to receive the multiple approval templates sent by the server and display the approval template selection interface;
[0112] The sending unit 1503 is further configured to send the target approval template to the server so that the server associates and stores the target approval template with the organization identifier of the organization.
[0113] In one possible implementation, the display unit 1501 is further configured to:
[0114] When an adjustment operation is detected for the third approval template, the third approval text template is displayed.
[0115] When there is an editing operation on the third approval text template, the third approval text template after the editing operation is displayed. The target approval template includes the third approval text template after the editing operation and the first approval process template after the editing operation. The target approval template is the adjusted third approval template.
[0116] In one possible implementation, if the target approval template is generated after detecting the organization's approval template creation operation, then the target approval template and the plurality of approval templates are all created approval templates under the organization.
[0117] If the target approval template is generated after detecting the adjustment operation of the organization, then the target approval template and all approval templates except the third approval template are already created approval templates under the organization.
[0118] In one possible implementation, the display unit 1501 is further configured to display the first approval process template of the first approval template in a floating window when there is a preview operation for the template name of the first approval template in the approval process template selection interface.
[0119] According to one embodiment of this application, Figure 2 , Figure 7 as well as Figure 12 The data processing method shown can involve various steps that can be derived from... Figure 15 This is performed by each unit in the data processing apparatus shown. For example, Figure 2 In the processing method shown, steps S201 to S203 can be performed by... Figure 15 The data processing device shown uses the display unit 1501 to perform the operation; for example, Figure 7 In the data processing method shown, steps S701 to S707 and steps S709 to S711 can be derived from... Figure 15 The data processing device shown is executed by the display unit 1501, and step S708 is performed by... Figure 15 The acquisition unit 1502 in the data processing device shown is used to perform this operation; for example, Figure 12 Steps S1201 to S1205 in the data processing method shown can be derived from... Figure 15 The data processing device shown is executed by the display unit 1501.
[0120] According to another embodiment of this application, Figure 15 The data processing apparatus shown can be constructed by combining each unit individually or entirely into one or more other units, or one or more of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0121] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 2 , Figure 7 as well as Figure 12 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 15 The data processing apparatus shown herein, and the data processing method for implementing the embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computing device via the computer-readable storage medium, and run therein.
[0122] In this embodiment, an approval process template selection interface is displayed. This interface includes multiple approval template names, each containing an approval process template. Each approval template is an existing approval template belonging to an organization. When the template name of the first approval template is selected, the first approval process template of that first approval template is displayed. This first approval template belongs to the multiple approval templates. When an editing operation is performed on the first approval process template, the edited first approval process template is displayed. This edited first approval process template is used to generate a target approval template, which is an existing approval template belonging to the organization. By setting the approval process of the target approval template using this method, approval processes can be copied from existing approval process templates, thereby improving the efficiency of editing approval templates.
[0123] Based on the above methods and apparatus embodiments, this application provides a terminal device. See also... Figure 16 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 16The terminal device shown includes at least a processor 1601, an input interface 1602, an output interface 1603, and a computer storage medium 1604. The processor 1601, input interface 1602, output interface 1603, and computer storage medium 1604 can be connected via a bus or other means.
[0124] The computer storage medium 1604 can be stored in the memory of the terminal device. The computer storage medium 1604 is used to store computer programs, which include program instructions. The processor 1601 is used to execute the program instructions stored in the computer storage medium 1604. The processor 1601 (or CPU (Central Processing Unit)) is the computing and control core of the terminal device. It is suitable for implementing one or more instructions, specifically for loading and executing one or more computer instructions to achieve corresponding method flows or corresponding functions.
[0125] This application embodiment also provides a computer storage medium (memory), which is a memory device in a terminal device used to store programs and data. It is understood that the computer storage medium here can include both the built-in storage medium in the terminal device and extended storage media supported by the terminal device. The computer storage medium provides storage space that stores the operating system of the terminal device. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by the processor 1601. These instructions can be one or more computer programs (including program code). It should be noted that the computer storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.
[0126] In one embodiment, the computer storage medium may be loaded by the processor 1601 and one or more instructions stored in the computer storage medium may be executed to achieve the aforementioned related... Figure 2 , Figure 7 as well as Figure 12 The corresponding steps of the data processing method shown are as follows. In specific implementation, one or more instructions in the computer storage medium are loaded by the processor 1601 and executed as follows:
[0127] The approval process template selection interface is displayed. The approval process template selection interface includes the template names of multiple approval templates. Each approval template includes an approval process template. Each approval template is an approved template that has been created under the organization.
[0128] When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed, and the first approval template belongs to the multiple approval templates;
[0129] When there is an edit operation on the first approval process template, the edited first approval process template is displayed. The edited first approval process template is used to generate the target approval template, which is an existing approval template under the organization.
[0130] In one possible implementation, the processor 1601 is further configured to:
[0131] When the organization's approval template creation operation is detected, the approval template selection interface is displayed, which includes the template names of multiple approval templates;
[0132] When the template name of the second approval template is selected, the second approval text template of the second approval template is displayed. The second approval template belongs to the plurality of approval templates. The target approval template includes the second approval text template and the first approval process template after the editing operation.
[0133] In one possible implementation, the approval template selection interface further includes a new control; the processor 1601 is also used for:
[0134] When the newly created control is triggered, the approval text template editing interface is displayed;
[0135] Obtain the initial approval text template, which is created in the approval text template editing interface. The target approval template includes the initial approval text template and the first approval process template after the editing operation.
[0136] In one possible implementation, the processor 1601 is further configured to:
[0137] A data request is sent to the server so that the server can obtain the multiple approval templates based on the organization's organizational identifier. The data request includes the organization's organizational identifier, and each approval template carries a template name.
[0138] Receive the multiple approval templates sent by the server and display the approval template selection interface;
[0139] The target approval template is sent to the server so that the server associates and stores the target approval template with the organization's identifier.
[0140] In one possible implementation, the processor 1601 is further configured to:
[0141] When an adjustment operation is detected for the third approval template, the third approval text template is displayed.
[0142] When there is an editing operation on the third approval text template, the third approval text template after the editing operation is displayed. The target approval template includes the third approval text template after the editing operation and the first approval process template after the editing operation. The target approval template is the adjusted third approval template.
[0143] In one possible implementation, if the target approval template is generated after detecting the organization's approval template creation operation, then the target approval template and the plurality of approval templates are all created approval templates under the organization.
[0144] If the target approval template is generated after detecting the adjustment operation of the organization, then the target approval template and all approval templates except the third approval template are already created approval templates under the organization.
[0145] In one possible implementation, the processor 1601 is further configured to display the first approval process template of the first approval template in a floating window when there is a preview operation for the template name of the first approval template in the approval process template selection interface.
[0146] In this embodiment, an approval process template selection interface is displayed. This interface includes multiple approval template names, each containing an approval process template. Each approval template is an existing approval template belonging to an organization. When the template name of the first approval template is selected, the first approval process template of that first approval template is displayed. This first approval template belongs to the multiple approval templates. When an editing operation is performed on the first approval process template, the edited first approval process template is displayed. This edited first approval process template is used to generate a target approval template, which is an existing approval template belonging to the organization. By setting the approval process of the target approval template using this method, approval processes can be copied from existing approval process templates, thereby improving the efficiency of editing approval templates.
[0147] According to one aspect of this application, embodiments of this application also provide a computer product or computer program, the computer product or computer program including computer instructions stored in a computer-readable storage medium. A processor 1601 reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing a terminal device to perform... Figure 2 , Figure 7 as well as Figure 12 The data processing method shown.
[0148] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0149] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, and the division of the units described above is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0150] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method includes: The approval process template selection interface is displayed. The approval process template selection interface includes the template names of multiple approval templates. The template names of the multiple approval templates are categorized into different groups according to preset tags. Each approval template includes an approval process template. Each approval template is an approved template created under the organization. When there is a preview operation for the template name of the first approval template in the approval process template selection interface, the first approval process template of the first approval template is displayed in the floating window; When the template name of the first approval template is selected, the first approval process template of the first approval template is displayed, and the first approval template belongs to the multiple approval templates; When there is an edit operation on the first approval process template, the edited first approval process template is displayed. The edited first approval process template is used to generate the target approval template, which is an existing approval template under the organization.
2. The method according to claim 1, characterized in that, The method further includes: When the organization's approval template creation operation is detected, the approval template selection interface is displayed, which includes the template names of multiple approval templates; When the template name of the second approval template is selected, the second approval text template of the second approval template is displayed. The second approval template belongs to the plurality of approval templates. The target approval template includes the second approval text template and the first approval process template after the editing operation.
3. The method according to claim 2, characterized in that, The approval template selection interface also includes a new control; The method further includes: When the newly created control is triggered, the approval text template editing interface is displayed; Obtain the initial approval text template, which is created in the approval text template editing interface. The target approval template includes the initial approval text template and the first approval process template after the editing operation.
4. The method according to claim 2, characterized in that, The display of the approval template selection interface includes: A data request is sent to the server so that the server can obtain the multiple approval templates based on the organization's organizational identifier. The data request includes the organization's organizational identifier, and each approval template carries a template name. Receive the multiple approval templates sent by the server and display the approval template selection interface; The method further includes: The target approval template is sent to the server so that the server associates and stores the target approval template with the organization's identifier.
5. The method according to claim 1, characterized in that, The method further includes: When an adjustment operation is detected for the third approval template, the third approval text template is displayed. When there is an editing operation on the third approval text template, the third approval text template after the editing operation is displayed. The target approval template includes the third approval text template after the editing operation and the first approval process template after the editing operation. The target approval template is the adjusted third approval template.
6. The method according to any one of claims 1-5, characterized in that, If the target approval template is generated after detecting the organization's approval template creation operation, then the target approval template and the multiple approval templates are all created approval templates under the organization. If the target approval template is generated after detecting the adjustment operation of the organization, then the target approval template and all approval templates except the third approval template are all created approval templates under the organization.
7. A data processing apparatus, characterized in that, The data processing device includes: The display unit is used to display the approval process template selection interface. The approval process template selection interface includes the template names of multiple approval templates. The template names of the multiple approval templates are categorized into different groups according to preset tags. Each approval template includes an approval process template. Each approval template is an approved template created under the organization. The display unit is also used to display the first approval process template of the first approval template in a floating window when there is a preview operation for the template name of the first approval template in the approval process template selection interface. The display unit is further configured to display the first approval process template of the first approval template when the template name of the first approval template is selected, wherein the first approval template belongs to the plurality of approval templates; The display unit is further configured to display the first approval process template after the editing operation when there is an editing operation on the first approval process template. The first approval process template after the editing operation is used to generate a target approval template, which is an existing approval template under the organization.
8. A terminal device, characterized in that, The terminal device includes: A processor, adapted to implement one or more instructions; and, A computer storage medium storing one or more instructions, said one or more instructions being adapted to be loaded by the processor and executed as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the data processing method as described in any one of claims 1-6.