Financial data calculation method, electronic equipment and computer readable storage medium

By packing the financial data calculation function into a regular component and calling according to business needs, the problem of low efficiency of the existing financial data calculation method has been solved, and flexible rules management and efficient financial data processing have been achieved, which meets the complex calculation needs of different enterprises. Essence

CN119376823APending Publication Date: 2025-01-28ZHONGKE YUNGU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411363540.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The existing financial data calculation methods are inefficient and difficult to meet the complex reward and punishment rules and performance appraisal needs of different enterprises, resulting in large development workload and low computing efficiency.

Method used

By encapsulating the financial data computing function into a regular component, and the financial data calculation of the corresponding rules components according to the business needs of the enterprise, the financial data calculation is achieved, and flexible regular component management and efficient financial data processing have been achieved.

Benefits of technology

This method can meet the financial data of different enterprises, improve the efficiency of financial data computing, reduce the development workload, and enhance the expansion of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376823A_ABST
    Figure CN119376823A_ABST
Patent Text Reader

Abstract

The invention discloses a financial data calculation method, electronic equipment and a computer readable storage medium, and the method comprises the steps: packaging financial data calculation functions of a target object, and obtaining a plurality of rule components corresponding to the financial data calculation functions; and calling the rule component according to the business demand of the target object, and calculating employee financial data of the target object based on a financial data calculation function in the rule component. The financial data calculation requirements of different enterprises can be met, and the financial data calculation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent computing technology, and in particular to a financial data calculation method, an electronic device and a computer-readable storage medium. Background Art

[0002] As small and medium-sized manufacturing companies gradually advance digital transformation and the granularity of production management becomes increasingly refined, how to manage financial data becomes particularly important.

[0003] For example, in most small and medium-sized manufacturing companies that currently use the Manufacturing Operationlanagement (MOM) system, the actual performance of each employee every day needs to be calculated by the piecework method to calculate the number of work reported by each employee in each process, and then multiplied by the piecework price to calculate the salary of each person. However, as personnel management gradually becomes more refined, the performance assessment of each company is also becoming more complicated, and different assessment rules and incentive rules are often established based on the output quality, efficiency and job level of production personnel.

[0004] At present, most small and medium-sized manufacturing companies often collect the actual work report data of production personnel through MOM or MES systems, and calculate the performance wages of each production personnel based on the standard unit price of different products in different processes. However, due to the complex and diverse reward and punishment rules of different companies, it is necessary to customize and develop different performance rule calculation methods according to different companies, which requires a large development workload and low calculation efficiency.

[0005] Therefore, the existing financial data calculation method is inefficient, and a method that can improve the efficiency of financial data calculation is urgently needed. Summary of the invention

[0006] The purpose of this application is to provide a financial data calculation method, an electronic device and a computer-readable storage medium, which can meet the financial data calculation needs of different enterprises and improve the efficiency of financial data calculation.

[0007] To achieve the above objectives:

[0008] In a first aspect, an embodiment of the present application provides a method for calculating financial data, the method comprising:

[0009] Encapsulating multiple financial data calculation functions of the target object respectively to obtain multiple rule components corresponding to the financial data calculation functions;

[0010] The rule component is called according to the business requirements of the target object to calculate the employee financial data of the target object based on the financial data calculation function in the rule component.

[0011] In one embodiment, the financial data calculation functions of the target object are respectively encapsulated to obtain a plurality of rule components corresponding to the financial data calculation functions, including:

[0012] Obtaining commonalities and differences between financial data calculation rules of different target objects, and determining a plurality of financial data calculation functions based on the commonalities and differences;

[0013] An interface of a rule component for encapsulating the financial data calculation function is determined, and the plurality of financial data calculation functions are encapsulated into the rule component, so as to call the rule component based on the interface.

[0014] In one embodiment, after determining an interface of a rule component for encapsulating the financial data calculation function and encapsulating the plurality of financial data calculation functions into the rule component, the method further comprises:

[0015] A unique identifier is assigned to each rule component, and a mapping relationship between the rule component and the unique identifier is established; when a target identifier indicated by a user instruction is received, the corresponding rule component is searched through the target identifier to call the interface corresponding to the rule component to perform financial data calculation.

[0016] In one embodiment, after assigning a unique identifier to each rule component, the method further comprises:

[0017] The mutual exclusivity of the rule components corresponding to each of the identifiers is determined according to a preset rule, so that when a target identifier indicated by a user instruction is received, the mutual exclusivity of the rule components corresponding to each identifier is checked to prevent illegal operations.

[0018] In one embodiment, calling the rule component according to the business requirements of the target object to calculate the employee financial data of the target object based on the financial data calculation function in the rule component includes:

[0019] receiving the work report data of the target object in real time, and determining the business needs of the target object based on the work report data;

[0020] Determine at least one rule component that needs to be called according to the business requirement, and determine the calling order of the rule components;

[0021] Clicking the unique identifiers corresponding to the rule components in sequence according to the calling sequence to start the rule components in sequence according to the calling sequence;

[0022] The mutual exclusivity of the rule component is verified, and when it is determined that the verification passes, the employee financial data of the target object is calculated based on the financial data calculation function in the rule component.

[0023] In one implementation, the work reporting data includes:

[0024] One or more of product information, process information, process route and performance financial data unit price.

[0025] In one embodiment, after calculating the employee financial data of the target object based on the financial data calculation function in the rule component, the method further includes:

[0026] According to the calculation results of different target objects, a corresponding financial data approval form is generated, and the financial data approval form is sent to the corresponding client on a daily basis.

[0027] In one embodiment, after generating corresponding financial data approval forms according to calculation results of different target objects, the method further includes:

[0028] The financial data approval forms of the different target objects are stored in real time, employee salary reports of the different target objects are created according to the daily financial data approval forms, and the employee salary reports and the financial data approval forms are sent together to the corresponding client.

[0029] In a second aspect, the present application provides an electronic device, including: a processor;

[0030] a memory for storing instructions executable by the processor;

[0031] Wherein, the processor is configured to execute the instructions to implement the financial data calculation method as described in any one of the first aspects.

[0032] In a third aspect, the present application provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor, the financial data calculation method as described in any one of the first aspects is implemented.

[0033] The financial data calculation method, electronic device and computer-readable storage medium provided by the present application include: encapsulating the financial data calculation functions of the target object respectively to obtain multiple rule components corresponding to the financial data calculation functions; calling the rule components according to the business needs of the target object to calculate the employee financial data of the target object based on the financial data calculation functions in the rule components. Therefore, the financial data calculation method provided by the present application encapsulates the financial data calculation functions into rule components, and calls the corresponding rule components according to actual needs to perform financial data calculation. It can meet the financial data calculation needs of different enterprises and improve the efficiency of financial data calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flowchart of a method for calculating financial data provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of the process of calling the rule component to calculate financial data in the present invention;

[0036] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0038] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0039] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.

[0040] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0041] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.

[0042] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0044] See also Figure 1 , is a flow chart of a financial data calculation method provided in an embodiment of the present application. The financial data calculation method can be executed by an electronic device provided in an embodiment of the present application. The financial data calculation method provided in this embodiment includes:

[0045] Step S1, encapsulating the financial data calculation functions of the target object respectively to obtain rule components corresponding to multiple financial data calculation functions.

[0046] It can be understood that the financial data calculation function is actually determined by the financial data calculation rules of each enterprise, and each financial data calculation rule corresponds to a function. These functions are independently encapsulated to form corresponding rule components. Enterprises can choose corresponding rule components according to their needs to calculate employee financial data. Financial data may include wages, etc.

[0047] By encapsulating the financial data calculation function into a rule component, when you need to add a new target object or modify the financial data calculation rules of an existing customer, you only need to add a new rule component or select one of the existing rule components to modify without affecting the operation of other rule components. In addition, if different customers have similar financial data calculation requirements, you can reuse a rule component or create a rule component with common functions to reduce code duplication and reduce the amount of development.

[0048] In one embodiment, the financial data calculation functions of the target object are encapsulated respectively to obtain rule components corresponding to multiple financial data calculation functions, including: obtaining the commonalities and differences of the financial data calculation rules of different target objects, and determining multiple financial data calculation functions based on the commonalities and differences; determining the interface of the rule component for encapsulating the financial data calculation function, and encapsulating the multiple financial data calculation functions into the rule component, so as to call the rule component based on the interface.

[0049] Understandably, by obtaining the common points of the financial data calculation rules of different target objects, a universal financial data calculation function can be determined based on the common points to avoid duplication of work; and by obtaining the differences, the customized financial data calculation function can be determined to meet the specific needs of different customers. In this way, it can better adapt to changes in business needs.

[0050] In one embodiment, after determining the interface of the rule component for encapsulating the financial data calculation function and encapsulating multiple financial data calculation functions into the rule component, the method also includes: assigning a unique identifier to each rule component and establishing a mapping relationship between the rule component and the unique identifier; so that when the target identifier indicated by the user instruction is received, the corresponding rule component is searched through the target identifier to call the interface corresponding to the rule component to perform financial data calculation.

[0051] In this embodiment, the unique identifier may be a number, a string, or a combination of a number and a string. When allocating the unique identifier of the rule component, the consistency and scalability of the allocation rule must be ensured to facilitate the addition of new rule components.

[0052] For example, assuming that Arabic numerals are used as unique identifiers of rule components, number “1” represents the encapsulated financial data calculation function f (x1) The first rule component, numbered "2", represents the encapsulated financial data calculation function f (x2) The second rule component, ..., number "n" represents the encapsulated financial data calculation function f (xn) Then when the user clicks on number "1", the first rule component is searched and the function f is used. (x1) To perform financial data calculations, when you click number n, find the nth rule component and use function f (xn) Execute financial data calculation. In this way, it is possible to quickly respond to user requests, directly locate the corresponding rule component according to the number, and improve the efficiency of financial data calculation.

[0053] In one embodiment, after assigning a unique identifier to each rule component, the method further includes: determining the mutual exclusivity of the rule components corresponding to each identifier according to a preset rule, so that when a target identifier indicated by a user instruction is received, the mutual exclusivity of the rule components corresponding to each identifier is verified.

[0054] Understandably, due to the different financial data policies of different enterprises, there will be mutual exclusivity in the calculation methods. For example, taking the calculation of the wages of enterprise employees as an example, a certain rule component applies to full-time employees, while another rule group applies to part-time employees. The wage calculation rules for full-time and part-time employees cannot be applied at the same time, so there is mutual exclusivity between the two rule components. Or some wage calculation rules may only apply to a specific time range, such as holiday wages or overtime wage calculation. If the time ranges involved in the two rule components overlap, but the rule contents are incompatible, they will be mutually exclusive. Or for different categories of employees (such as ordinary employees, managers, sales staff, etc.), there may be different bonus or subsidy calculation rules. If an employee belongs to multiple categories at the same time, the relevant rule components may be mutually exclusive. Therefore, after completing the encapsulation of the rule components and the allocation of identifiers, the use conditions of each rule component should be determined to determine the mutual exclusivity between them. Therefore, when receiving the user instruction, check whether the current operation meets the application conditions of the rule component, and judge whether the selected rule component conflicts with other applied rule components. In this way, illegal operations can be prevented and the accuracy and compliance of financial data calculation can be ensured.

[0055] Step S2: calling the rule component according to the business requirements of the target object to calculate the employee financial data of the target object based on the financial data calculation function in the rule component.

[0056] In this embodiment, each rule component is displayed on the client, and the user can freely select the required rule component according to business needs, and then call the corresponding rule component to perform financial data calculation according to the user's selection.

[0057] For details, see the attached Figure 2 Step S2 can be specifically implemented by the following steps:

[0058] Step S21, receiving the work report data of the target object in real time, and determining the business needs of the target object based on the work report data;

[0059] Step S22, determining at least one rule component that needs to be called according to business requirements, and determining the calling order of the rule components;

[0060] Step S23, clicking the unique identifiers corresponding to the rule components in sequence according to the calling order, so as to start the rule components in sequence according to the calling order;

[0061] Step S24, verifying the mutual exclusivity of the rule component, and when it is determined that the verification passes, calculating the employee financial data of the target object based on the financial data calculation function in the rule component.

[0062] Step S21 collects the target object's work report data, including the target object's employees' actual work data, such as working hours, overtime hours, number of tasks completed, etc., and uses these data as the basis for financial data calculation. According to the work report data, business needs are determined, such as which employees should receive overtime pay, which employees meet the bonus conditions, etc., to ensure that the subsequent financial data calculation conforms to the actual business situation. Step S22 selects appropriate rule components according to the business needs analyzed in step S21. Since different call orders may affect the final financial data calculation results (for example, some bonuses or deductions may need to be applied after the basic salary calculation), the call order of the rule components should also be determined after selecting the rule components to ensure the correctness of the financial data calculation. Step S23 ensures that the required rule components are correctly called through unique identifiers, ensures that the rule components are executed in a predetermined order, and ensures the consistency and correctness of the calculation logic. Step S24 checks whether there is mutual exclusion between the selected rule components to prevent the simultaneous application of conflicting rules and ensure the legality of the financial data calculation. After confirming that the selected rule components have no mutual exclusion problems, the financial data calculation function in the rule components is used for calculation to ensure that the financial data results are accurate and timely.

[0063] In one embodiment, the work report data includes: one or more of product information, process information, process route and performance wage unit price.

[0064] It can be understood that data such as product information, process information, process route and performance wage unit price are the basic data for financial data calculation. In addition, in the actual calculation process, employee information, working hour data, working date, production quantity, quality data and other data can also be obtained according to actual needs, and these detailed data can be combined to complete the financial data calculation.

[0065] In one embodiment, after calculating the employee financial data of the target object based on the financial data calculation function in the rule component, the method further includes: generating corresponding financial data approval forms according to the calculation results of different target objects, and sending the financial data approval forms to the corresponding clients on a daily basis.

[0066] It can be understood that the system calculates the employee financial data based on the received work report data, and summarizes the calculation results of the day at the specified end time of each day to form the financial data approval form for the day, and then sends the financial data approval form to the corresponding client, which the customer can view and download and store by himself.

[0067] Furthermore, after generating corresponding financial data approval forms according to calculation results of different target objects, the method also includes: storing the financial data approval forms of different target objects in real time, establishing employee salary reports of different target objects based on daily financial data approval forms, and sending the employee salary reports and financial data approval forms together to the corresponding client.

[0068] By automatically generating employee salary reports, we provide customers with detailed salary structures and calculation basis, increase the transparency of salary payment, and enable customers to clearly understand the salary situation of employees. In addition, detailed salary reports can help customers analyze salary costs and provide data support for budget planning, salary policy adjustments, etc.

[0069] The financial data calculation method provided by the present invention encapsulates a variety of financial data calculation functions into rule components, so that enterprise managers can freely call the required rule components according to needs to calculate financial data. And when encapsulating the rule components, the mutual exclusivity of each rule component is taken into account. When the rule components are enabled, the enabling restrictions between the rule components are prompted according to the mutual exclusivity, and when the rule components are enabled, the calling order of each rule component is maintained, so as to be applicable to more calculation methods. It can meet the management requirements of the refined control of the performance wages of production personnel in the process of digital transformation of small and medium-sized manufacturing enterprises, support the accumulation of reward and punishment rules of various enterprises through projects, and add them to the rule component library. When the subsequent enterprise management rules already exist, they can be directly called automatically by enabling the rule component, reducing the development workload, and at the same time improving the scalability of the system by configuring the rule component.

[0070] Based on the same inventive concept as the aforementioned embodiments, a specific example is provided below to establish penalty rules for poor production quality and performance rules for personnel during probation, and to illustrate how to calculate employee wages according to the financial data calculation method provided by the present invention.

[0071] 1) Obtain work report data. Including:

[0072] a. Maintain product information A001;

[0073] b. Maintain the corresponding process routes and processes of the products: machining process - bending process - milling process;

[0074] c. The unit price of performance wages for maintaining this product: 10 yuan / piece for machining process, 20 yuan / piece for bending process, and 30 yuan / piece for milling process.

[0075] 2) Development of performance reward and punishment rule components.

[0076] a. Penalty rules for poor production quality: When the employee's output is poor, the corresponding amount of output wages will be deducted according to the number of defective products produced, that is, performance wages = reported wages - number of defective products produced * unit price of the process

[0077] b. Performance rules for probationary period: When the employee has been employed for no more than three months, the overall final salary shall be 80% of the normal salary, that is, when the employee's reporting time does not exceed the time of employment plus three months, the performance salary = reported salary * 80%.

[0078] 3) Configuration of performance reward and punishment rule components.

[0079] Rule component 1: Enable the poor production quality penalty rule;

[0080] Rule component 2: Enable the performance rules for personnel during probation;

[0081] Rule component 3: Enable the poor production quality penalty rule plus the employee probation performance rule.

[0082] 4) Calculation of performance-based salary:

[0083] User Zhang San reported 10 good products in the machining process and 10 good products in the bending process, and 8 good products and 2 defective products in the milling process.

[0084] The salary for good product production = 10*10+10*20+8*30=540 yuan.

[0085] When performance rules are enabled,

[0086] According to rule component 1: Zhang San's performance salary = 540-2*30 = 480 yuan

[0087] According to rule component 2: Zhang San's performance salary = 540*0.8 = 432 yuan

[0088] According to rule component 3: Zhang San's performance salary = (540-2*30)*0.8 = 384 yuan

[0089] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 3 The processor 310 shown in the figure is not used to indicate that the number of the processor 310 is one, but is only used to indicate the positional relationship of the processor 310 relative to other devices. In actual applications, the number of the processor 310 may be one or more; similarly, Figure 3 The memory 311 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 311 relative to other devices. In actual applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the above financial data calculation method is implemented.

[0090] The electronic device may also include: at least one network interface 312. The various components in the electronic device are coupled together via a bus system 313. It is understood that the bus system 313 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 313 is not used in the following examples. Figure 3 Various buses are labeled as bus system 313.

[0091] The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory 311 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memory.

[0092] The memory 311 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of these data include: any computer program used to operate on the electronic device, such as an operating system and an application; contact data; phone book data; messages; pictures; videos, etc. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program may include various applications, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. Here, the program that implements the method of the embodiment of the present invention may be included in the application program.

[0093] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a computer-readable storage medium, in which a computer program is stored. The computer-readable storage medium may be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); or various devices including one or any combination of the above-mentioned memories, such as a server. When the instructions stored therein are executed by a processor, the financial data calculation method described in the above-mentioned embodiment is implemented.

[0094] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0095] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.

[0096] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for calculating financial data, characterized in that: include: Encapsulating multiple financial data calculation functions of the target object respectively to obtain multiple rule components corresponding to the financial data calculation functions; The rule component is called according to the business requirements of the target object to calculate the financial data of the target object based on the financial data calculation function in the rule component.

2. The method according to claim 1, characterized in that The financial data calculation functions of the target object are respectively encapsulated to obtain multiple rule components corresponding to the financial data calculation functions, including: Obtaining commonalities and differences between financial data calculation rules of different target objects, and determining a plurality of financial data calculation functions based on the commonalities and differences; An interface of a rule component for encapsulating the financial data calculation function is determined, and the plurality of financial data calculation functions are encapsulated into the rule component, so as to call the rule component based on the interface.

3. The method according to claim 2, characterized in that After determining the interface of the rule component for encapsulating the financial data calculation function and encapsulating the multiple financial data calculation functions into the rule component, the method further includes: A unique identifier is assigned to each rule component, and a mapping relationship between the rule component and the unique identifier is established; when a target identifier indicated by a user instruction is received, the corresponding rule component is searched through the target identifier to call the interface corresponding to the rule component to perform financial data calculation.

4. The method according to claim 3, characterized in that After assigning a unique identifier to each rule component, the method further comprises: Determine the mutual exclusivity of the rule components corresponding to each of the identifiers according to a preset rule; When receiving the target identifier indicated by the user instruction, the mutual exclusivity of the rule components corresponding to each identifier is checked.

5. The method according to claim 4, characterized in that The calling of the rule component according to the business requirements of the target object to calculate the employee financial data of the target object based on the financial data calculation function in the rule component includes: receiving the work report data of the target object in real time, and determining the business needs of the target object based on the work report data; Determine at least one rule component that needs to be called according to the business requirement, and determine the calling order of the rule components; Clicking the unique identifiers corresponding to the rule components in sequence according to the calling sequence to start the rule components in sequence according to the calling sequence; The mutual exclusivity of the rule component is verified, and when it is determined that the verification passes, the employee financial data of the target object is calculated based on the financial data calculation function in the rule component.

6. The method according to claim 5, characterized in that The work reporting data includes: One or more of product information, process information, process route and performance financial data unit price.

7. The method according to any one of claims 1 to 6, characterized in that: After calculating the employee financial data of the target object based on the financial data calculation function in the rule component, the method further includes: According to the calculation results of different target objects, a corresponding financial data approval form is generated, and the financial data approval form is sent to the corresponding client on a daily basis.

8. The method according to claim 7, characterized in that After generating the corresponding financial data approval form according to the calculation results of different target objects, the method further includes: The financial data approval forms of the different target objects are stored in real time, employee salary reports of the different target objects are created according to the daily financial data approval forms, and the employee salary reports and the financial data approval forms are sent together to the corresponding client.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the financial data calculation method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor, the financial data calculation method according to any one of claims 1 to 8 is implemented.