Accounting role-based accounting process state visualization method, system and equipment
By obtaining the mapping relationship between accounting role functional permissions and node units for image rendering, the problems of low efficiency and low accuracy in multi-role collaborative accounting are solved, the visualization and efficient interaction of the accounting process are realized, and the operational efficiency and accuracy of accounting personnel are improved.
Patent Information
- Application Number
- CN202510682701.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-09-16
AI Technical Summary
In the performance accounting process of existing technologies, the efficiency and accuracy of multi-role collaborative accounting are low, the accounting process is complex and the degree of visualization is low.
By obtaining the functional permissions corresponding to each accounting role, determining the node units and their parent-child relationships and states, rendering images based on the mapping relationship, and re-rendering in response to operation instructions, the visualization and efficient interaction of the accounting process can be achieved.
It improves the efficiency and accuracy of multi-role collaborative accounting, enhances the visualization and interactivity of the accounting process, and enables accounting personnel to intuitively understand the process status and changes.
Smart Images

Figure CN120653706A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of performance accounting, and in particular to a method, system and device for visualizing accounting process status based on accounting roles. Background Art
[0002] With the increasing sophistication of enterprise management, performance accounting, as a crucial component of human resource management, has become increasingly complex and important. Traditional performance accounting solutions typically build specific functional modules for accounting roles based on business needs. Accounting roles then operate independent functional modules based on their job responsibilities. However, as business scale expands, the number of accounting roles and functional modules increases, and the accounting process becomes increasingly complex.
[0003] Therefore, in the performance accounting process, the efficiency of multi-role collaborative accounting in the existing technology is low, and the accuracy of performance accounting is reduced due to the complexity and low visualization of the accounting process between multiple accounting roles. Summary of the Invention
[0004] The present invention provides a method, system and device for visualizing the status of an accounting process based on accounting roles, which can solve the problems of low efficiency and low accuracy in achieving performance accounting.
[0005] The present invention provides a method for visualizing accounting process status based on accounting roles, comprising:
[0006] Acquire functional permissions corresponding to each accounting role, and determine corresponding node units in a preset node range based on the functional permissions, wherein the preset node range includes a plurality of initial node units;
[0007] Determine the parent-child node units and node states corresponding to each of the node units, determine a corresponding first mapping relationship based on the parent-child node units, and determine a second mapping relationship based on the node states, wherein the second mapping relationship is a mapping relationship between the node states and a preset display component;
[0008] Based on the first mapping relationship and the second mapping relationship, performing image rendering on the node unit to obtain an initial state image;
[0009] Respond to a preset operation instruction and determine an operation result, and re-render the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
[0010] The embodiment of the present invention obtains the functional authority corresponding to each accounting role, determines a corresponding number of node units in a preset node range based on the functional authority, wherein the preset node range includes a number of initial node units; determines the parent-child node units and node states corresponding to each of the node units, determines the corresponding first mapping relationship based on the parent-child node units, and determines the second mapping relationship based on the node state, wherein the second mapping relationship is the mapping relationship between the node state and the preset display component; based on the first mapping relationship and the second mapping relationship, performs image rendering on the node unit to obtain an initial state image; responds to a preset operation instruction and determines the operation result, re-renders the initial state image according to the preset rendering rules based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction. Compared with the prior art, the present application achieves visualization and efficient interaction of the accounting process by associating the functional authority of the accounting role with the node unit, clarifying the parent-child relationship and state of the node, and performing image rendering based on the mapping relationship. Accounting personnel can intuitively understand the process status and view changes in real time through simple operations, thereby improving the efficiency and accuracy of multi-role collaborative accounting.
[0011] Furthermore, the preset display component is a display component including any multiple node status components, wherein the node status components include a failed component, a completed component, a pending component, a component in progress, a not started component, or an unauthorized component; the responding to the preset operation instruction and determining the operation result, and re-rendering the initial state image according to the preset rendering rules based on the operation result, are specifically:
[0012] Responding to a first click instruction of a target node status component in the preset display component;
[0013] If the target node state component corresponding to the first click instruction is an unauthorized component, determining an initial node unit other than the node unit in the preset node range as a first node unit, and rendering the first node unit according to a first rendering rule;
[0014] If the target node state component corresponding to the first click instruction is any one of a failed component, a completed component, a pending component, an ongoing component or an unstarted component, then for each of the node units, when the node state of the node unit does not have the second mapping relationship with the target node state component, the node unit is determined to be a second node unit, and the second node unit in the initial state image is rendered according to the second rendering rule.
[0015] This design combines preset display components with various node status components, and differentially renders node units in specific states based on click commands, enabling rapid screening and visual display of nodes in different states within the accounting process. This design enhances the interactivity and visualization of the accounting process, allowing accountants to more efficiently locate and process nodes in specific states, further improving the efficiency and accuracy of multi-role collaborative accounting.
[0016] Furthermore, the target state image is obtained by responding to a preset operation instruction and determining an operation result, and re-rendering the initial state image according to a preset rendering rule based on the operation result, specifically:
[0017] In response to a pointer hover instruction of the target node unit, the target node unit and the parent-child node units of the target node unit in the initial state image are rendered according to a third rendering rule to obtain the target state image.
[0018] By responding to hover commands on target nodes and rendering the target node and its parent and child nodes according to the second rendering rule, the user's interactivity with the accounting process image is enhanced, while also providing richer contextual information. This solution allows accounting personnel to more intuitively understand the hierarchical relationships between nodes and the process logic, thereby improving the visualization of the accounting process and the efficiency of collaborative accounting.
[0019] Furthermore, the image rendering is performed on the node unit to obtain the initial state image, specifically:
[0020] Image rendering is performed on the node identification, node state, and node process of the node unit respectively to obtain the initial state image.
[0021] By rendering the node name, node status, and node process of each node unit to generate an initial state image, a comprehensive visual display of key information in the accounting process is achieved. This design improves the efficiency and accuracy of user information acquisition, enhances understanding of the entire accounting process, and strengthens decision-making support capabilities, thus laying the foundation for further optimizing the accounting process and improving collaborative accounting efficiency.
[0022] Furthermore, the responding to the preset operation instruction and determining the operation result, and re-rendering the initial state image according to the preset rendering rule based on the operation result to obtain the target state image, specifically:
[0023] In response to the second click instruction of the target node unit, the operation function table of the target node unit is rendered according to a fourth rendering rule to obtain the target state image.
[0024] In this way, this technical solution renders the operation function table of the target node unit in response to the second click instruction of the target node unit, realizing the rapid switching from the visual display of the accounting process to the specific node operation function. This design enhances the interactivity between users and the system, improves the flexibility and targeting of operations, and optimizes process management and monitoring capabilities, thereby further improving the processing efficiency and synergy of the accounting process.
[0025] Furthermore, each of the initial node units includes any number of a node identifier, a visual attribute value, and a node state, and the corresponding number of node units is determined in a preset node range based on the functional authority, specifically:
[0026] If there is a correspondence between the function identifier corresponding to the function permission of the accounting role and the node identifier corresponding to the initial node unit, the visibility attribute value of the initial node unit is set to a first preset value, otherwise it is set to a second preset value, wherein the first preset value is used to indicate that the node unit is visible, and the second preset value is used to indicate that the node unit is not visible;
[0027] An initial node unit whose visual attribute value is a first preset value is determined to be the node unit.
[0028] In this way, precise permission control and dynamic visual management are achieved by matching the functional permissions of the accounting role with the node identifier of the initial node unit and setting the visual attribute value of the node unit according to the matching result.
[0029] Furthermore, the target node unit and the parent-child node units of the target node unit in the initial state image are rendered according to the second rendering rule to obtain the target state image, specifically:
[0030] Maintain the visual attribute values of the target node unit and the parent-child node units as the first preset value, and update the visual attribute values of other node units to the second preset value, render the node unit whose visual attribute value is the first preset value according to the first mapping relationship, and obtain the target state image, wherein the first preset value is used to represent that the node unit is visible, and the second preset value is used to represent that the node unit is not visible.
[0031] By dynamically adjusting the visual attribute values of node units and rendering the target node unit and its parent and child nodes according to the second rendering rule, a focused display of key nodes and their contextual information is achieved. This solution allows accounting roles to more intuitively understand the hierarchical relationships between nodes and the process logic, thereby improving the visualization of the accounting process and the efficiency of collaborative accounting.
[0032] Another embodiment of the present invention further provides an accounting process status visualization system based on accounting roles, comprising: an acquisition module, a mapping module, a first rendering module and a second rendering module;
[0033] The acquisition module is configured to acquire the functional authority corresponding to each accounting role, and determine a corresponding number of node units in a preset node range based on the functional authority, wherein the preset node range includes a number of initial node units;
[0034] The mapping module is configured to determine the parent-child node units and node states corresponding to each of the node units, determine a corresponding first mapping relationship based on the parent-child node units, and determine a second mapping relationship based on the node states, wherein the second mapping relationship is a mapping relationship between the node states and a preset display component;
[0035] The first rendering module is configured to perform image rendering on the node unit based on the first mapping relationship and the second mapping relationship to obtain an initial state image;
[0036] The second rendering module is used to respond to a preset operation instruction and determine the operation result, and re-render the initial state image according to the preset rendering rules based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
[0037] The embodiment of the present invention uses the acquisition module to obtain the functional permissions corresponding to each accounting role, and determines a number of corresponding node units in a preset node range based on the functional permissions, wherein the preset node range includes a number of initial node units; the mapping module is used to determine the parent-child node units and node states corresponding to each of the node units, determine the corresponding first mapping relationship based on the parent-child node units, and determine the second mapping relationship based on the node state, wherein the second mapping relationship is the mapping relationship between the node state and the preset display component; the first rendering module is used to render the node unit based on the first mapping relationship and the second mapping relationship to obtain an initial state image; the second rendering module is used to respond to a preset operation instruction and determine the operation result, and re-render the initial state image according to the preset rendering rules based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction. Compared with the prior art, the present application can improve the accuracy and efficiency of performance accounting.
[0038] Another embodiment of the present invention further provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the steps of the power system operating status identification method of the present invention are implemented.
[0039] Another embodiment of the present invention further provides a computer-readable storage medium item, comprising: a stored computer program, which controls the device where the computer-readable storage medium is located to execute the steps of the power system operating status identification method of the present invention when the computer program is running. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 This is a flowchart of an embodiment of a method for visualizing accounting process status based on accounting roles;
[0042] Figure 2 This is a schematic diagram of the structure of an accounting role provided by an embodiment of the present invention;
[0043] Figure 3 This is a structural diagram of an initial node unit provided by an embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of an initial state image provided by an embodiment of the present invention;
[0045] Figure 5 is a schematic diagram of another target state image provided by an embodiment of the present invention;
[0046] Figure 6 is a schematic diagram of another target state image provided by an embodiment of the present invention;
[0047] Figure 7 is a schematic diagram of another target state image provided by an embodiment of the present invention;
[0048] Figure 8 This is a structural diagram of an accounting process status visualization system based on accounting roles provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0051] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0052] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0053] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0054] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0055] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0056] Example 1
[0057] See also Figure 1 ,In order to solve the problems of low efficiency and low accuracy of performance accounting in existing technologies, Figure 1 1 is a flow chart of an embodiment of a method for visualizing accounting process status based on accounting roles provided by the present invention. The method includes steps S101-S104, each of which is specifically as follows:
[0058] S101. Acquire functional permissions corresponding to each accounting role, and determine corresponding node units in a preset node range based on the functional permissions, wherein the preset node range includes a plurality of initial node units.
[0059] In this embodiment, the attributes of each accounting role include role identification and functional authority, wherein functional authority refers to the set of functional nodes corresponding to the accounting functions undertaken by the accounting role in the performance accounting process, and the role identification can be the role ID or the role name. Figure 2 This is a schematic diagram of the structure of an accounting role provided by an embodiment of the present invention. When a role identifier for the accounting role is obtained, a function node set corresponding to the functional authority is obtained based on the role identifier. The function nodes in the function node set are compared with initial node units in a preset node range, and a number of node units corresponding to the function node set are determined within the preset node range.
[0060] As an example of an embodiment of the present invention, each of the initial node units includes any multiple of a node identifier, a visible attribute value, and a node status, and the corresponding several node units are determined in a preset node range based on the functional authority, specifically: if there is a corresponding relationship between the functional identifier corresponding to the functional authority of the accounting role and the node identifier corresponding to the initial node unit, the visible attribute value of the initial node unit is set to a first preset value, otherwise it is set to a second preset value, wherein the first preset value is used to characterize that the node unit is visible, and the second preset value is used to characterize that the node unit is not visible; the initial node unit whose visible attribute value is the first preset value is determined to be the node unit.
[0061] In this embodiment, if Figure 3 The figure shows a structural schematic diagram of an initial node unit provided by an embodiment of the present invention, wherein the node identifier can be a node ID or a node name, the first preset value corresponding to the visible attribute value is 1, and the second preset value is 0. For each accounting role, when comparing the function node set corresponding to its functional authority with the preset node range, the function identifier of each function node in the function node set can be compared with the node identifier of each initial node unit in the preset node range. If there is a corresponding relationship, the visible attribute value of the initial node unit is set to 1, otherwise it is 0, and the initial node unit with the visible attribute value of 1 in the preset node range is determined as the node unit.
[0062] S102. Determine the parent-child node units and node status corresponding to each of the node units, determine the corresponding first mapping relationship based on the parent-child node units, and determine the second mapping relationship based on the node status, wherein the second mapping relationship is the mapping relationship between the node status and the preset display component.
[0063] In this embodiment, each node unit includes a parent node unit, and the parent-child node unit corresponding to each node unit is determined based on the parent node units of all node units. Based on the corresponding relationship between all parent-child node units, a first mapping relationship between each node unit is determined, and the first mapping relationship can represent the node flow between the node units. The preset display component is a display component constructed based on the node state type of the node unit, and the second mapping relationship between the node unit and the preset display component can be determined based on the node state of the node unit.
[0064] S103: Perform image rendering on the node unit based on the first mapping relationship and the second mapping relationship to obtain an initial state image.
[0065] In this embodiment, by performing image rendering on the node units based on the first mapping relationship, the node flow between the node units can be displayed; and by performing image rendering on the node units based on the second mapping relationship, each node unit can be associated with the preset display component to obtain an initial state image.
[0066] As another example of an embodiment of the present invention, the image rendering of the node unit to obtain the initial state image is specifically: image rendering of the node identification, node state and node process of the node unit is performed respectively to obtain the initial state image.
[0067] In this embodiment, the preset display component can set different node colors according to different node status types. For each node unit, based on the second mapping relationship, the node color corresponding to the node state of the node unit is determined. Figure 4What is shown is a schematic diagram of an initial state image provided by an embodiment of the present invention. Taking the node identifier as the node name as an example, when the node name, node state and node process of the node unit are rendered respectively, each node unit is drawn as a rectangle. The rectangle includes an upper and lower layer structure. The upper layer structure is used to display the corresponding node color, and the lower layer structure is used to display the corresponding node name. The node process is outlined with arrows to display the parent-child node relationship between the node units to obtain the initial state image. At the same time, the preset display component can be rendered in the initial state image so that the accounting role can operate the preset display component based on the second mapping relationship to display the node unit corresponding to the specific node state type to update the initial state image.
[0068] S104, responding to a preset operation instruction and determining an operation result, re-rendering the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
[0069] In this embodiment, the accounting role can operate each node unit and preset display component in the initial state image. For example, when the accounting role places the mouse on the preset display component and clicks the display component corresponding to a certain node state type, the pointer click instruction corresponding to the preset display component is obtained; or, when the accounting role places the mouse on the target node unit, the pointer hover instruction corresponding to the target node unit is obtained; or, when the accounting role places the mouse on the target node unit and right-clicks, the pointer click instruction corresponding to the target node unit is obtained. Any of the above preset operation instructions is obtained and responded to, the corresponding operation result is determined, and based on the operation result, the initial state image is re-rendered according to the preset rendering rules to obtain the target state image.
[0070] As an example of an embodiment of the present invention, the preset display component is a display component including any multiple node status components, and the node status components include failed components, completed components, pending review components, in-progress components, unstarted components or unauthorized components; the responding to the preset operation instruction and determining the operation result, re-rendering the initial state image according to the preset rendering rule based on the operation result to obtain the target state image, specifically: responding to the first click instruction of the target node status component in the preset display component; if the target node status component corresponding to the first click instruction is an unauthorized component, then in the preset node range, determining the initial node unit other than the node unit as the first node unit, and rendering the first node unit according to the first rendering rule; if the target node status component corresponding to the first click instruction is any one of failed components, completed components, pending review components, in-progress components or unstarted components, then for each of the node units, when the node state of the node unit does not have the second mapping relationship with the target node status component, determining the node unit as the second node unit, and rendering the second node unit in the initial state image according to the second rendering rule.
[0071] In this embodiment, the node status types include failed, completed, pending review, in progress, not started, or unauthorized. A corresponding node status component is constructed for each node status type, namely, a failed component, a completed component, a pending review component, a in progress component, a not started component, a modified component, or an unauthorized component, thereby obtaining a preset display component including all node status components. The first rendering rule and the second rendering rule can both be, based on the node color corresponding to the unauthorized component, rendering the lower structure of the first node unit into the node color, and retaining the node color corresponding to the node state of the upper structure. However, there is a difference in the rendering logic of the first rendering rule and the second rendering rule. The first rendering rule is to render the node when the node state of the node corresponds to the node state component, and the second rendering rule is to render the node when the node state of the node does not correspond to the node state component. In response to the first click instruction of the unauthorized component, in the preset node range, the initial node unit other than the node unit is determined to be the first node unit, the visible attribute value of the aforementioned node unit is retained as 1, and the visible attribute value of the first node unit is modified to 1, and the first node unit is rendered according to the first rendering rule. At the same time, the node unit is continued to be rendered in the initial state image, and the following is obtained: Figure 5The diagram of another target state image provided by an embodiment of the present invention is shown. In response to the first click instruction corresponding to any one of the components of the failed component, the completed component, the component to be reviewed, the component in progress or the unstarted component, taking the unstarted component as an example, for each node unit, if the node state corresponding to the node unit is unstarted, the node unit is deleted, and the visible attribute value of the node unit with the node state of unstarted is modified to 0; if the node state corresponding to the node unit is not unstarted, the node unit is determined to be the second node unit, the visible attribute values of the node units corresponding to other states are retained as 1, and the second node unit is rendered according to the second rendering rule, and the result is as follows. Figure 6 A schematic diagram of another target state image provided by an embodiment of the present invention is shown.
[0072] As another example of an embodiment of the present invention, the method of responding to a preset operation instruction and determining the operation result, and re-rendering the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, is specifically: responding to a pointer hover instruction of a target node unit, and rendering the target node unit and the parent-child node units of the target node unit in the initial state image according to a second rendering rule to obtain the target state image.
[0073] In this embodiment, in response to a pointer hovering instruction of a target node unit, the rendering process of the target node unit and its parent-child node units is retained in the initial state image to obtain a target state image.
[0074] In this example, the target node unit and the parent-child node units of the target node unit in the initial state image are rendered according to the third rendering rule to obtain the target state image, specifically: the visual attribute values of the target node unit and the parent-child node units are kept as the first preset value, and the visual attribute values of other node units are updated to the second preset value, and the node unit whose visual attribute value is the first preset value is rendered according to the first mapping relationship to obtain the target state image, wherein the first preset value is used to represent that the node unit is visible, and the second preset value is used to represent that the node unit is not visible.
[0075] Specifically, the visual attribute value of the target node unit and the parent-child node units of the target node unit is maintained at 1, and the visual attribute values of the node units except the target node unit and the parent-child node units of the target node unit are modified to 0, so as to render the target node unit and the parent-child node units with the visual attribute value of 1 according to the first mapping relationship to obtain the target state image.
[0076] As another example of an embodiment of the present invention, the response to the preset operation instruction and the determination of the operation result, based on the operation result, the initial state image is re-rendered according to the preset rendering rules to obtain the target state image, specifically: in response to the second click instruction of the target node unit, the operation function table of the target node unit is rendered to obtain the target state image.
[0077] In this embodiment, in response to the right-click instruction of the target node unit, the operation function table corresponding to the target node unit is rendered according to the fourth rendering rule to display the operation functions related to the target node unit, as shown below. Figure 7 The diagram shows another target state image provided by an embodiment of the present invention. Furthermore, a corresponding function event can be created for each operation function in the operation function table. When a third click instruction for the target operation function in the operation function table is obtained, the node state of the target node unit is modified in response to the third click instruction and according to the operation result corresponding to the third click instruction.
[0078] As can be seen from the above, the present invention provides a method for visualizing accounting process status based on accounting roles. This method associates the functional permissions of accounting roles with node units, clarifies the parent-child relationship and status of nodes, and performs image rendering based on this mapping relationship, thus achieving visualization and efficient interaction of accounting processes. Accounting personnel can intuitively understand the process status and view changes in real time through simple operations, thereby improving the efficiency and accuracy of multi-role collaborative accounting.
[0079] Example 2
[0080] like Figure 8 As shown, based on the above method embodiment, a corresponding system embodiment is provided;
[0081] An embodiment of the present invention provides an accounting process status visualization system based on accounting roles, comprising: an acquisition module 801, a mapping module 802, a first rendering module 803 and a second rendering module 804;
[0082] The acquisition module 801 is configured to acquire the functional authority corresponding to each accounting role, and determine a number of corresponding node units in a preset node range based on the functional authority, wherein the preset node range includes a number of initial node units;
[0083] The mapping module 802 is configured to determine the parent-child node units and node states corresponding to each of the node units, determine a corresponding first mapping relationship based on the parent-child node units, and determine a second mapping relationship based on the node states, wherein the second mapping relationship is a mapping relationship between the node states and a preset display component;
[0084] The first rendering module 803 is configured to perform image rendering on the node unit based on the first mapping relationship and the second mapping relationship to obtain an initial state image;
[0085] The second rendering module 804 is used to respond to a preset operation instruction and determine the operation result, and re-render the initial state image according to the preset rendering rules based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
[0086] It can be understood that the above-mentioned system item embodiment corresponds to the method item embodiment of the present invention, which can implement any of the above-mentioned method item embodiments of the present invention to provide an accounting process status visualization method based on accounting roles.
[0087] It should be noted that the system embodiments described above are merely illustrative, and some or all of the modules may be selected to achieve the objectives of the present embodiments as needed. Furthermore, in the drawings of the system embodiments provided herein, the connection relationships between modules indicate that they have communication connections, which may be implemented as one or more communication buses or signal lines. Persons of ordinary skill in the art can understand and implement the present invention without inventive effort.
[0088] Based on the above-mentioned embodiment of the accounting process status visualization method based on accounting roles, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the accounting process status visualization method based on accounting roles of any embodiment of the present invention is implemented.
[0089] For example, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more module elements may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0090] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0091] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0092] Based on the above-mentioned method embodiments, another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the accounting process status visualization method based on accounting roles described in any one of the above-mentioned method embodiments of the present invention.
[0093] Wherein, the module / unit integrated in the device / terminal equipment, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0094] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for visualizing accounting process status based on accounting roles, characterized in that: include: Acquire functional permissions corresponding to each accounting role, and determine corresponding node units in a preset node range based on the functional permissions, wherein the preset node range includes a plurality of initial node units; Determine the parent-child node units and node states corresponding to each of the node units, determine a corresponding first mapping relationship based on the parent-child node units, and determine a second mapping relationship based on the node states, wherein the second mapping relationship is a mapping relationship between the node states and a preset display component; Based on the first mapping relationship and the second mapping relationship, performing image rendering on the node unit to obtain an initial state image; Respond to a preset operation instruction and determine an operation result, and re-render the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
2. The method for visualizing accounting process status based on accounting roles according to claim 1, characterized in that: in, The preset display component is a display component including any number of node status components, wherein the node status components include a failed component, a completed component, a component to be reviewed, a component in progress, a component not started, or an unauthorized component; the responding to the preset operation instruction and determining the operation result, and re-rendering the initial state image according to the preset rendering rules based on the operation result, are specifically: Responding to a first click instruction of a target node status component in the preset display component; If the target node state component corresponding to the first click instruction is an unauthorized component, determining an initial node unit other than the node unit in the preset node range as a first node unit, and rendering the first node unit according to a first rendering rule; If the target node state component corresponding to the first click instruction is any one of a failed component, a completed component, a pending component, an ongoing component or an unstarted component, then for each of the node units, when the node state of the node unit does not have the second mapping relationship with the target node state component, the node unit is determined to be a second node unit, and the second node unit in the initial state image is rendered according to the second rendering rule.
3. The method for visualizing accounting process status based on accounting roles according to claim 1, characterized in that: The step of responding to a preset operation instruction and determining an operation result, and re-rendering the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, is specifically as follows: In response to a pointer hover instruction of the target node unit, the target node unit and the parent-child node units of the target node unit in the initial state image are rendered according to a third rendering rule to obtain the target state image.
4. The method for visualizing accounting process status based on accounting roles according to claim 1, characterized in that: The image rendering is performed on the node unit to obtain the initial state image, specifically: Image rendering is performed on the node identification, node state and node process of the node unit respectively to obtain the initial state image.
5. The method for visualizing the accounting process status based on accounting roles according to claim 4, characterized in that: The step of responding to a preset operation instruction and determining an operation result, and re-rendering the initial state image according to a preset rendering rule based on the operation result to obtain a target state image, is specifically as follows: In response to the second click instruction of the target node unit, the operation function table of the target node unit is rendered according to a fourth rendering rule to obtain the target state image.
6. The method for visualizing accounting process status based on accounting roles according to claim 1, characterized in that: Each of the initial node units includes any number of a node identifier, a visual attribute value, and a node state. The corresponding number of node units is determined in a preset node range based on the functional authority, specifically: If there is a correspondence between the function identifier corresponding to the function permission of the accounting role and the node identifier corresponding to the initial node unit, the visibility attribute value of the initial node unit is set to a first preset value, otherwise it is set to a second preset value, wherein the first preset value is used to indicate that the node unit is visible, and the second preset value is used to indicate that the node unit is not visible; An initial node unit whose visual attribute value is a first preset value is determined to be the node unit.
7. The method for visualizing accounting process status based on accounting roles according to claim 3, characterized in that: The target node unit and the parent-child node units of the target node unit in the initial state image are rendered according to the second rendering rule to obtain the target state image, specifically: Maintain the visual attribute values of the target node unit and the parent-child node units as the first preset value, and update the visual attribute values of other node units to the second preset value, render the node unit whose visual attribute value is the first preset value according to the first mapping relationship, and obtain the target state image, wherein the first preset value is used to represent that the node unit is visible, and the second preset value is used to represent that the node unit is not visible.
8. An accounting process status visualization system based on accounting roles, characterized in that: include: an acquisition module, a mapping module, a first rendering module, and a second rendering module; The acquisition module is configured to acquire the functional authority corresponding to each accounting role, and determine a corresponding number of node units in a preset node range based on the functional authority, wherein the preset node range includes a number of initial node units; The mapping module is configured to determine the parent-child node units and node states corresponding to each of the node units, determine a corresponding first mapping relationship based on the parent-child node units, and determine a second mapping relationship based on the node states, wherein the second mapping relationship is a mapping relationship between the node states and a preset display component; The first rendering module is configured to perform image rendering on the node unit based on the first mapping relationship and the second mapping relationship to obtain an initial state image; The second rendering module is used to respond to a preset operation instruction and determine the operation result, and re-render the initial state image according to the preset rendering rules based on the operation result to obtain a target state image, wherein the preset operation instruction includes any one of a pointer click instruction and a pointer hover instruction.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method for visualizing the status of an accounting process based on accounting roles as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that include: A stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the accounting process status visualization method based on accounting roles as described in any one of claims 1 to 7.