Report generation method, device and storage medium

By configuring the report template documents on the configuration side, dynamically generate data collection pages and business reports, solving the inefficiency problem caused by the design of pages for each data collection requirement in the existing technology, and achieving report generation that quickly responds to user needs.

CN112114787BActive Publication Date: 2024-11-26RUISHI (SUZHOU) VIDEO TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011032481.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-27
Publication Date
2024-11-26
Estimated Expiration
2040-09-27

AI Technical Summary

Technical Problem

The existing business report generation method is inefficient, and developers need to design a data acquisition page for each data acquisition requirement, resulting in large business volume and low generation efficiency.

Method used

The report template document is obtained through the configuration side, the field configuration operation is received, the field attribute encoding is generated, and the document analysis tool is used to upload it to the file server to dynamically generate the data collection page, the mobile side collects data, and the file server generates business reports.

Benefits of technology

It reduces the development time of developers, improves report generation efficiency, adapts to meet changes in user needs, and can collect and handle new business without redeveloping the page on the mobile terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112114787B_ABST
    Figure CN112114787B_ABST
Patent Text Reader

Abstract

The present application relates to a report generation method, device and storage medium, belonging to the field of computer technology, the method comprising: receiving configuration operations on multiple report fields in a report template document, obtaining field attributes of each report field; using a document parsing tool to generate attribute codes for each field attribute, and uploading the report template document and the attribute codes to a file server; the file server uses the document parsing tool to parse the attribute codes to obtain field attributes; based on the report template document and the field attributes, a data collection page corresponding to the report template document is generated; a mobile terminal collects report data based on the data collection page; the file server uses the report template document and the report data to generate a business report; the problem of large business development volume and low generation efficiency in the report generation process can be solved; the report data can be collected without developing the data collection page, which can reduce development time and improve report generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a report generation method, device and storage medium, and belongs to the field of computer technology. Background Art

[0002] At present, the number of businesses handled by office staff is gradually increasing, and each business may require the generation of a corresponding business report. In order to realize automated office, developers need to design a way to generate business reports.

[0003] The existing business report generation method includes: developers design a report data collection page according to requirements, and collect report data through the collection page; the server generates a business report through the report data in the collection page.

[0004] However, the user's needs for collecting data may change. If developers develop a data collection page based on each need, it will lead to low efficiency in generating business reports. Summary of the invention

[0005] The present application provides a report generation method, device and storage medium, which can solve the problem that developers generate a corresponding data collection page according to each data collection requirement, the development business volume is large, and the generation efficiency of business reports is low. The present application provides the following technical solutions:

[0006] In a first aspect, a report generation method is provided for use in a configuration terminal, the method comprising:

[0007] Acquire a report template document, wherein the report template document includes a plurality of report fields;

[0008] Receiving configuration operations on the multiple report fields, and obtaining field attributes corresponding to each report field;

[0009] Use the preset document parsing tool to generate the attribute code corresponding to each field attribute;

[0010] Use the document parsing tool to upload the report template document and the attribute code to the file server, so that the file server uses the document parsing tool to parse the attribute code to obtain the field attributes; generate a data collection page corresponding to the report template document based on the report template document and the field attributes; send the data collection page to the mobile terminal so that the mobile terminal can collect the report data corresponding to the report template document; so that the file server can obtain the report data; use the report template document and the report data to generate a business report, and send the business report to the mobile terminal.

[0011] Optionally, the receiving configuration operations on the multiple report fields to obtain field attributes corresponding to each report field includes:

[0012] Receiving a collection mode configuration operation for each report field, and obtaining a first field attribute;

[0013] and / or,

[0014] An encoding configuration operation for each report field is received to obtain a second field attribute.

[0015] Optionally, the collection mode configuration operation includes one of the following: a text input box configuration operation, a date selection box configuration operation, a drop-down selection box configuration operation, and a signature configuration operation.

[0016] Optionally, the using a preset document parsing tool to generate an attribute code corresponding to each field attribute includes:

[0017] Use the JasperReport template design tool or the Word tool to generate the attribute code corresponding to each field attribute.

[0018] Optionally, after uploading the report template document and the attribute code to a file server using the document parsing tool, the method further includes:

[0019] Receiving a modification operation on a target report field among the plurality of report fields, and obtaining the modified report template document;

[0020] receiving a configuration operation on the changed target report field, and obtaining the changed field attribute corresponding to the changed target report field;

[0021] Using the document parsing tool to generate the changed attribute code corresponding to the changed field attribute;

[0022] The document parsing tool is used to upload the modified report template document and the modified attribute code to the file server.

[0023] In a second aspect, a report generation method is provided, which is used in a file server, and the method comprises:

[0024] Receive a report template document and attribute code uploaded by a configuration end, wherein the report template document includes multiple report fields; the attribute code includes attribute codes of field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives a configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field;

[0025] Using the document parsing tool to parse the attribute code to obtain the field attribute;

[0026] When receiving the data collection request sent by the mobile terminal, generating a data collection page corresponding to the report template document based on the report template document and the field attributes;

[0027] Sending the data collection page to the mobile terminal so that the mobile terminal can collect report data corresponding to the multiple report fields;

[0028] Acquire report data sent by the mobile terminal based on the data collection page;

[0029] A business report is generated using the report template document and the report data, and the business report is sent to the mobile terminal.

[0030] Optionally, the field attribute includes a first field attribute and a second field attribute; the first field attribute is used to indicate a collection method of report data corresponding to the report field; the second field attribute is used to indicate a code of the report field;

[0031] The step of generating a data collection page corresponding to the report template document based on the report template document and the field attributes includes:

[0032] Generate page content of the data collection page based on the report template document, wherein the page content includes the multiple report fields;

[0033] Generating a data input area of ​​the data collection page according to the collection method indicated by the first field attribute;

[0034] An association relationship between the second field attribute and the data input area is established to obtain the data collection page.

[0035] Optionally, the generating a business report using the report template document and the report data includes:

[0036] Receiving a report generation request sent by the mobile terminal, wherein the report generation request includes a report generation requirement;

[0037] Filling the report data into the report template document based on the report generation request;

[0038] The business report that meets the report generation requirements is generated using the report template document after the data is filled in.

[0039] In a third aspect, a report generation method is provided for a mobile terminal, the method comprising:

[0040] Sending a data collection request to a file server, the data collection request is used to request the file server to send a data collection page corresponding to a report template document; the data collection page is generated based on the report template document and the field attributes by using the document parsing tool to parse the attribute code after the file server receives the report template document and attribute code uploaded by the configuration end; the report template document includes multiple report fields; the attribute code includes attribute codes of field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives a configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field;

[0041] Receiving and displaying a data collection page returned by the file server based on the report acquisition request;

[0042] Receiving report data input on the data collection page;

[0043] Uploading the report data to the file server, so that the file server generates a business report according to the report template document and the report data, and sends the business report to the mobile terminal;

[0044] The business report is received.

[0045] Optionally, the field attribute includes a first field attribute and a second field attribute; the first field attribute is used to indicate a collection method of report data corresponding to the report field; the second field attribute is used to indicate a code of the report field;

[0046] The data collection page includes page content, a data input area, and an association relationship between the second field attribute and the data input area; the page content is generated by the file server based on the report template document, and the page content includes the multiple report fields; the data input area is generated by the file server according to the collection method indicated by the first field attribute;

[0047] The receiving of report data input on the data collection page includes:

[0048] receiving report data inputted in the data input area;

[0049] The uploading of the report data to the file server includes:

[0050] Determine the second field attribute corresponding to the report data input in each data input area based on the association relationship;

[0051] The report data and the corresponding relationship between the report data and the second field attribute are sent to the file server.

[0052] Optionally, before receiving the business report, the method further includes:

[0053] Sending a report generation request to the file server, the report generation request including a report generation requirement; allowing the file server to fill the report data into the report template document based on the report generation request; and using the report template document after the data is filled in to generate the business report that meets the report generation requirement.

[0054] In a fourth aspect, a report generating device is provided, the device comprising a processor and a memory; the memory stores a program, the program is loaded and executed by the processor to implement the report generating method described in the first aspect; or, to implement the report generating method described in the second aspect; or, to implement the report generating method described in the third aspect.

[0055] In a fifth aspect, a computer-readable storage medium is provided, wherein a program is stored in the storage medium, and the program is loaded and executed by the processor to implement the report generation method described in the first aspect; or, to implement the report generation method described in the second aspect; or, to implement the report generation method described in the third aspect.

[0056] In a sixth aspect, a report generation system is provided, the system comprising: a configuration terminal, a file server communicatively connected to the configuration terminal, and a mobile terminal communicatively connected to the file server;

[0057] The configuration end is used to obtain a report template document, the report template document includes multiple report fields; receive configuration operations on the multiple report fields, and obtain field attributes corresponding to each report field; use a preset document parsing tool to generate an attribute code corresponding to each field attribute; and use the document parsing tool to upload the report template document and the attribute code to the file server;

[0058] The file server is used to receive the report template document and attribute code uploaded by the configuration terminal;

[0059] The mobile terminal is used to send a data collection request to the file server;

[0060] The file server is used to generate a data collection page corresponding to the report template document based on the report template document and the field attributes when receiving a data collection request sent by the mobile terminal; and send the data collection page corresponding to the report template document to the mobile terminal;

[0061] The mobile terminal is used to receive and display the data collection page; receive the report data input on the data collection page; and upload the report data to the file server;

[0062] The file server is used to obtain the report data sent by the mobile terminal based on the data collection page; generate a business report using the report template document and the report data, and send the business report to the mobile terminal;

[0063] The mobile terminal is used to receive the business report.

[0064] The beneficial effects of the present application are as follows: the report template document is configured and managed by the configuration end, and the file server generates a data collection page according to the configuration, so that the data to be collected for the business report is collected by the mobile end, and finally the file server generates the corresponding business report and exports it for download; it can solve the problem that developers generate a corresponding data collection page according to each data collection requirement, the development business volume is large, and the generation efficiency of business reports is low; developers only need to perform field configuration according to the data to be collected on the report, and can realize the collection of report data on the mobile end without developing a data collection page for each report, which can reduce the time required for development.

[0065] In addition, when developing a data collection page on a mobile terminal, the file server needs to be restarted or a version update adapted to the data collection page needs to be performed, and this embodiment does not require the redevelopment of the data collection page on the mobile terminal. Therefore, the file server version does not need to be updated or restarted, and the collection and processing of new business can be quickly realized, thereby improving the efficiency of report generation.

[0066] In addition, by generating business reports according to report generation requirements, the needs of users for generating reports can be adaptively met, thereby improving the adaptability of generating business reports.

[0067] In addition, if the user wants to change the collected report fields, the developer can change the target report fields online through the configuration end to respond to changes in user needs in real time.

[0068] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is a structural diagram of a report generation system provided by an embodiment of the present application;

[0070] Figure 2 is a flow chart of a report generation method provided by an embodiment of the present application;

[0071] Figure 3 It is a schematic diagram of a report template document provided by an embodiment of the present application;

[0072] Figure 4 It is a schematic diagram of attribute coding of a report template document provided by an embodiment of the present application;

[0073] Figure 5 is a schematic diagram of a data collection page provided by an embodiment of the present application;

[0074] Figure 6 is a block diagram of a report generation device provided by an embodiment of the present application;

[0075] Figure 7 is a block diagram of a report generating device provided by another embodiment of the present application;

[0076] Figure 8 is a block diagram of a report generation device provided by another embodiment of the present application;

[0077] Fig. 9 This is a block diagram of a report generating device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0078] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.

[0079] First, several terms involved in this application are introduced.

[0080] JasperReport: It is a report generation tool that can display rich page content and convert it into PDF, HTML, or XML format. It also has a related open source project - IReport, which is a graphical auxiliary tool, because JasperReport only provides usable class libraries but does not provide better development tools. JasperReport organizes data through report design defined in XML documents. These data may come from different data sources, including relational databases, collections, and Java object arrays.

[0081] docx4j: is a Java class library for creating and manipulating Microsoft Open XML files.

[0082] Figure 1 is a structural diagram of a report generation system provided by an embodiment of the present application, such as Figure 1As shown, the system at least includes: a configuration terminal 110, a file server 120 and a mobile terminal 130.

[0083] The configuration terminal 110 and the mobile terminal 130 are both communicatively connected to the file server 120. Optionally, the configuration terminal 110 and the mobile terminal 130 can be electronic devices such as computers, tablet computers, and mobile phones. This embodiment does not limit the device types of the configuration terminal 110 and the mobile terminal 130.

[0084] Optionally, the configuration terminal 110 and the mobile terminal 130 may be implemented in the same device, or may be implemented in different devices, and this embodiment does not limit the implementation of the configuration terminal 110 and the mobile terminal 130. In addition, the number of the configuration terminal 110 and the mobile terminal 130 may be one or more, and this embodiment does not limit the number of the configuration terminal 110 and the mobile terminal 130.

[0085] In this embodiment, the configuration end 110 is used to dynamically configure a report template document and report fields in the report template document that require data collection.

[0086] Optionally, the report template document is a document designed according to report requirements, and the report template document includes multiple report fields, and the multiple report fields are report fields that require data collection, such as: Figure 3 The fields of name, gender, date of birth, etc. in the report template document shown. Of course, the report template document may also include other report fields that do not require data collection, such as report name, etc. This embodiment does not limit the content included in the report template document.

[0087] In this embodiment, the configuration end 110 is used to obtain a report template document; receive configuration operations on multiple report fields in the report template document, and obtain field attributes corresponding to each report field; use a preset document parsing tool to generate attribute codes corresponding to each field attribute; and use the document parsing tool to upload the report template document and the attribute codes to the file server 120.

[0088] The field attribute is used to indicate the attribute of the report field. Optionally, the field attribute of each report field includes a first field attribute and / or a second field attribute, the first field attribute is used to indicate the collection method of the report data corresponding to the report field; the second field attribute is used to indicate the coding of the report field.

[0089] In one example, configuration operations for multiple report fields are received to obtain field attributes corresponding to each report field, including: receiving a collection method configuration operation for each report field to obtain a first field attribute; and / or receiving an encoding configuration operation for each report field to obtain a second field attribute.

[0090] Optionally, the collection method configuration operation includes one of the following: a text input box configuration operation, a date selection box configuration operation, a drop-down selection box configuration operation, and a signature configuration operation. Optionally, the configuration terminal 110 may display a field attribute configuration page, in which a collection method selection control is displayed, and different collection method selection controls correspond to different collection methods; the configuration terminal 110 receives the collection method configuration operation acting on the target collection method selection control, and determines the collection method corresponding to the target collection method selection control as the first field attribute.

[0091] Optionally, the encoding configuration operation for each report field is to use special characters to pre-set the report data to be collected. For example: use "${}" to pre-set the report data to be collected corresponding to each report field, fill in the code of the report field in {}, and obtain the second field attribute. For example: refer to Figure 4 The code corresponding to each report field is configured in "${}".

[0092] Among them, a preset document parsing tool is used to generate the attribute code corresponding to each field attribute, including: using the document parsing tool to encode the field attributes to obtain a specified file (for example: a file in XML format) for parsing by the document parsing tool in the file server, and the content in the specified file is the attribute code corresponding to the field attribute. Optionally, the document parsing tool is a JasperReport template design tool or a Word tool. The document parsing tool to be used is determined according to the type of report template document. Two document parsing tools are supported, which can be compatible with complex types of report designs to ensure that the user's business report needs are online in a timely manner.

[0093] Afterwards, if the user needs to modify one or some report fields in the report template document, the user can modify the report fields in the report template document through the configuration terminal 110 .

[0094] Schematically, the configuration end 110 receives a change operation on a target report field among multiple report fields to obtain a changed report template document; receives a configuration operation on the changed target report field to obtain a changed field attribute corresponding to the changed target report field; uses a document parsing tool to generate a changed attribute code corresponding to the changed field attribute; and uses the document parsing tool to upload the changed report template document and the changed attribute code to a file server.

[0095] The operation of changing the target report field includes, but is not limited to, adding a target report field, deleting a target report field, and / or modifying a target report field. This embodiment does not limit the type of the change operation.

[0096] The relevant description of the configuration operation of the changed target report field is the same as the relevant description of the configuration operation of the report field in the above text, and the relevant description of generating the changed attribute coding corresponding to the changed field attribute is the same as the relevant description of generating the attribute coding corresponding to the field attribute in the above text, and this embodiment will not be repeated here.

[0097] Accordingly, the file server 120 receives the report template document and the attribute code uploaded by the configuration terminal 110 .

[0098] Optionally, the report template document and attribute code received by the file server 120 may be uploaded before the configuration end 110 receives a change operation; or, may be uploaded after the configuration end 110 receives a change operation and changes the target report field.

[0099] In this embodiment, the file server 120 stores the field attributes corresponding to the report template document in a table in the MySQL database. For example: Figure 3 The field properties of some report fields in the report template document shown are shown in Table 1 below.

[0100] Table 1:

[0101] Report Fields First Field Attributes Second field attribute Name Text Input Box name gender Text Input Box sex Date of Birth Date Selection Box birth date

[0102] The file server 120 is used to dynamically generate a data collection page according to the dynamic configuration of the report template document by the configuration terminal 110, so that the mobile terminal 130 can collect data through the data collection page. In this way, there is no need to design a data collection page on the mobile terminal 130, but data collection is realized by dynamically generating a data collection page through the file server 120, which can improve the data collection efficiency and thus improve the report generation efficiency.

[0103] At this time, the mobile terminal 130 is used to send a data collection request to the file server 120, and the data collection request is used to request the file server to send a data collection page corresponding to the report template document.

[0104] In one example, the mobile terminal 130 uses a browser to send an access request to the file server 120; after receiving the access request, the file server 120 returns a document selection page to the mobile terminal 130 based on the access request, and the document selection page includes at least one report template document uploaded by the configuration terminal 110 and received by the file server 120; the mobile terminal 130 receives and displays the document selection page returned by the file server 120; after receiving the selection operation of the report template document in the document selection page, it generates a data collection request and sends the data collection request to the file server 120.

[0105] Of course, after receiving the access request, the file server 120 may also perform operations such as authentication on the mobile terminal 130 . This embodiment does not introduce each operation performed during the process of the mobile terminal 130 accessing the file server 120 .

[0106] The selection operation received by the mobile terminal 130 may be a click operation on a report template document; or an operation of inputting the name of a report template document, etc. This embodiment does not limit the implementation method of the selection operation.

[0107] In addition, when the mobile terminal 130 displays the report template document through the document selection page, it can be displayed in pages; or dragged; or displayed on a single page, etc. This embodiment does not limit the way in which the mobile terminal 130 displays the report template document through the document selection page.

[0108] The file server 120 is also used to generate a data collection page corresponding to the report template document based on the report template document and field attributes when receiving a data collection request sent by the mobile terminal 130; and send the data collection page to the mobile terminal 130 so that the mobile terminal 130 can collect report data corresponding to multiple report fields.

[0109] In one example, the file server 120 generates a data collection page corresponding to the report template document based on the report template document and field attributes, including: generating page content of the data collection page based on the report template document, the page content including multiple report fields; generating a data input area of ​​the data collection page according to the collection method indicated by the first field attribute; establishing an association relationship between the second field attribute and the data input area to obtain the data collection page.

[0110] For example: Reference Figure 5 In the data collection page shown, the file server 120 determines the data input area of ​​the report field "name" as a text input box, determines the data input area of ​​the report field "gender" as a text input box, and determines the data input area of ​​the report field "date of birth" as a date selection box according to the first field attribute.

[0111] Optionally, the data input area displays input method prompt information, and the input method prompt information stops displaying after receiving the input operation. For example: Figure 5 "Please fill in" is used to prompt that the input method is text input, and "Please select" is used to prompt that the input method is "date selection".

[0112] The mobile terminal 130 is also used to receive and display the data collection page returned by the file server based on the report acquisition request; receive the report data entered on the data collection page; upload the report data to the file server 120 so that the file server 120 can generate a business report based on the report template document and the report data, and send the business report to the mobile terminal 130.

[0113] In one example, receiving report data inputted on a data collection page includes: receiving report data inputted in a data input area. Figure 5 The user enters the name in the data input area corresponding to "Name" and the gender in the data input area corresponding to "Gender". After entering the data in sequence, all report data is obtained.

[0114] Since the data collection page also includes an association relationship between the second field attribute and the data input area, the mobile terminal 130 can determine the second field attribute corresponding to the report data input in each data input area based on the association relationship, and send the report data and the correspondence relationship between the report data and the second field attribute to the file server 120. In this way, the file server 120 can determine the filling position of the report data in the report template document based on the correspondence relationship.

[0115] Correspondingly, the file server 120 is also used to obtain report data sent by the mobile terminal 130 based on the data collection page; generate a business report using the report template document and the report data, and send the business report to the mobile terminal 130 .

[0116] In this embodiment, the file server 120 stores the collected report data and the corresponding relationship between the report data and the second field attribute in another table of the MySQL database, for example: Figure 3 The report data corresponding to some report fields in the report template document shown are shown in Table 2 below. Optionally, the field attribute in the MySQL database and the report data corresponding to the field attribute are in a one-to-many relationship. Based on the correspondence between the acquired report data and the second field attribute, the file server 120 acquires the data in the MySQL database in a fixed key-value pair (key-value) manner, where the key is the second field attribute and the value is the report data corresponding to the second field attribute.

[0117] Table 2:

[0118] Second field attribute Report data name Bob sex male birth date 1992-01-01

[0119] In other embodiments, the file server 120 may also merge the data in Table 1 and Table 2 into the same table for storage. This embodiment does not limit the way in which the file server 120 stores data.

[0120] Optionally, the file server 120 uses a document parsing tool to fill the report data into a corresponding report template document to obtain a business report.

[0121] Optionally, after acquiring the report data, the file server 120 directly generates a business report using the report data; or, upon receiving a report generation request sent by the mobile terminal 130 , the file server 120 generates a business report using the report data.

[0122] If the file server 120 generates a business report using the report data only upon receiving a report generation request sent by the mobile terminal 130, then before using the report template document and the report data to generate the business report, the process also includes: the mobile terminal 130 sends a report generation request to the file server 120; accordingly, the file server 120 receives the report generation request sent by the mobile terminal 130, the report generation request including the report generation requirement; based on the report generation request, the report data is filled into the report template document; and a business report that meets the report generation requirement is generated using the report template document after the data is filled in.

[0123] The report generation requirement includes, but is not limited to: report format and / or font format in the report, etc. This embodiment does not limit the content of the report generation requirement.

[0124] In one example, the mobile terminal 130 accesses a report generation webpage provided by the file server 120 through a browser, and the report generation webpage includes an input area for report generation requirements and a request confirmation area; the mobile terminal 130 receives a requirement input operation on the input area, and obtains a report generation requirement indicated by the requirement input operation; receives a confirmation operation on the request confirmation area; generates a report generation request based on the confirmation operation, and the report generation request carries the report generation requirement; thereafter, the mobile terminal 130 sends the report generation request to the file server 120.

[0125] Among them, the input area can receive demand input operations through character input; or receive demand input operations through control selection, such as: displaying multiple optional requirements through controls for users to execute and select report generation requirements. This embodiment does not limit the way in which the input area receives demand input operations.

[0126] The request confirmation area can receive confirmation operations through control selection, such as displaying a submit option through a control for the user to perform a confirmation operation.

[0127] Afterwards, if the mobile terminal 130 needs to change the report generation requirements, it can send a changed report generation request to the file server 120 again, and the changed report generation request includes the changed report generation requirements; accordingly, the file server 120 receives the changed report generation request sent by the mobile terminal 130; fills the report data into the report template document based on the changed report generation request; and uses the report template document after the data is filled in to generate a business report that meets the changed report generation requirements.

[0128] In summary, the report generation system provided by this embodiment configures and manages the report template document through the configuration terminal, and the file server generates a data collection page according to the configuration, so that the data to be collected for the business report is collected by the mobile terminal, and finally the file server generates the corresponding business report and exports and downloads it. Developers only need to perform field configuration according to the data to be collected on the report, and can realize the collection of report data on the mobile terminal without developing a data collection page for each report, which can reduce the time required for development. At the same time, since the file server needs to be restarted or updated to adapt to the version of the data collection page when developing the data collection page on the mobile terminal, and this embodiment does not need to redevelop the data collection page on the mobile terminal, the file server version does not need to be updated or restarted, and the collection and processing of new business can be quickly realized, thereby improving the efficiency of report generation.

[0129] Figure 2 This is a flow chart of a report generation method provided by an embodiment of the present application. This embodiment applies the method to Figure 1 In the report generation system shown in FIG. 1 , the method includes at least the following steps:

[0130] Step 201: The configuration end obtains a report template document, which includes a plurality of report fields.

[0131] A report template document is a report document designed by a developer; in other words, a report template document is a document designed based on report requirements. A report template document includes multiple report fields, which are report fields that require data collection, such as: Figure 3 The fields of name, gender, date of birth, etc. in the report template document shown. Of course, the report template document may also include other report fields that do not require data collection, such as report name, etc. This embodiment does not limit the content included in the report template document.

[0132] The report template document may be a word report document, or of course, a report document in other formats. This embodiment does not limit the format of the report template document.

[0133] Step 202: The configuration end receives configuration operations on multiple report fields and obtains field attributes corresponding to each report field.

[0134] The field attribute is used to indicate the attribute of the report field. Optionally, the field attribute of each report field includes a first field attribute and / or a second field attribute, the first field attribute is used to indicate the collection method of the report data corresponding to the report field; the second field attribute is used to indicate the coding of the report field.

[0135] Optionally, receiving configuration operations on multiple report fields to obtain field attributes corresponding to each report field includes: receiving a collection mode configuration operation on each report field to obtain a first field attribute.

[0136] The collection method configuration operation includes one of the following: a text input box configuration operation, a date selection box configuration operation, a drop-down selection box configuration operation, and a signature configuration operation.

[0137] The text input box configuration operation is used to configure the report data corresponding to the report field to be collected through the text input box.

[0138] The date selection box configuration operation is used to configure the report data corresponding to the report field to be collected through the date selection box.

[0139] The drop-down selection box configuration operation is used to configure the report data corresponding to the report field to be collected through the drop-down selection box.

[0140] The signature configuration operation is used to configure the report data corresponding to the report field and is collected by acquiring the signature data (text data or image data).

[0141] Optionally, a field attribute configuration page may be displayed in the configuration end, in which a collection method selection control is displayed, and different collection method selection controls correspond to different collection methods; the configuration end receives the collection method configuration operation acting on the target collection method selection control, and determines the collection method corresponding to the target collection method selection control as the first field attribute.

[0142] For example: the collection method configuration operation corresponding to the name field is a text input box configuration operation, the collection method configuration operation corresponding to the date of birth is a date selection box configuration operation, the collection method configuration operation corresponding to the application type is a drop-down selection box configuration operation, the collection method configuration operation corresponding to the signature is a picture configuration operation, etc.

[0143] Optionally, receiving configuration operations on multiple report fields to obtain field attributes corresponding to each report field includes: receiving an encoding configuration operation on each report field to obtain a second field attribute.

[0144] In one example, the encoding configuration operation for each report field is to use special characters to preset the report data to be collected. For example, use "${}" to preset the report data to be collected corresponding to each report field, fill in the code of the report field in {}, and obtain the second field attribute.

[0145] For example: Reference Figure 4 The report shown is obtained after encoding configuration operation is performed on the report template document, wherein the code of each report field is filled in {}.

[0146] Step 203: The configuration end uses a preset document parsing tool to generate an attribute code corresponding to each field attribute.

[0147] Generate the attribute code corresponding to each field attribute using a preset document parsing tool, including: using the document parsing tool to encode the field attribute to obtain a specified file (such as an XML format file) for parsing by the document parsing tool in the file server, wherein the content in the specified file is the attribute code corresponding to the field attribute. Optionally, the document parsing tool is a JasperReport template design tool or a Word tool.

[0148] Step 204: The configuration end uses a document parsing tool to upload the report template document and the attribute code to the file server.

[0149] The report template document and attribute code are used for the file server to use the document parsing tool to parse the attribute code to obtain the field attributes; generate the data collection page corresponding to the report template document based on the report template document and the field attributes; send the data collection page corresponding to the report template document to the mobile terminal so that the mobile terminal can collect the report data corresponding to the report template document; so that the file server can obtain the report data; use the report template document and the report data to generate a business report, and send the business report to the mobile terminal.

[0150] Afterwards, if the user needs to change one or some report fields in the report template document, the report fields in the report template document can be changed through the configuration end.

[0151] Schematically, the configuration end receives a change operation on a target report field among multiple report fields, and obtains a changed report template document; receives a configuration operation on the changed target report field, and obtains a changed field attribute corresponding to the changed target report field; uses a document parsing tool to generate a changed attribute code corresponding to the changed field attribute; and uses the document parsing tool to upload the changed report template document and the changed attribute code to a file server.

[0152] The operation of changing the target report field includes, but is not limited to, adding a target report field, deleting a target report field, and / or modifying a target report field. This embodiment does not limit the type of the change operation.

[0153] For the description of the configuration operation of the changed target report field, refer to step 202 , and for the description of generating the changed attribute code corresponding to the changed field attribute, refer to step 203 , which will not be described in detail in this embodiment.

[0154] Step 205: The file server receives the report template document and attribute code uploaded by the configuration terminal.

[0155] The report template document includes multiple report fields; the attribute code includes the attribute code of the field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives the configuration operation of the corresponding report field and obtains the field attribute corresponding to the report field.

[0156] Optionally, the report template document and attribute code received by the file server may be uploaded before the configuration end receives the change operation; or, may be uploaded after the configuration end receives the change operation and changes the target report field.

[0157] Step 206: The mobile terminal sends a data collection request to the file server.

[0158] Among them, the data collection request is used to request the file server to send the data collection page corresponding to the report template document; the data collection page is generated based on the report template document and field attributes after the file server receives the report template document and attribute code uploaded by the configuration end, and uses the document parsing tool to parse the attribute code; the report template document includes multiple report fields; the attribute code includes the attribute code of the field attributes of multiple report fields; the attribute code of each field attribute is generated by the preset document parsing tool after the configuration end receives the configuration operation of the corresponding report field and obtains the field attribute corresponding to the report field.

[0159] In one example, a mobile terminal uses a browser to send an access request to a file server; after receiving the access request, the file server returns a document selection page to the mobile terminal based on the access request, and the document selection page includes a report template document uploaded by the configuration terminal and received by the file server; the mobile terminal receives and displays the document selection page returned by the file server; after receiving a selection operation on the report template document in the document selection page, a data collection request is generated and sent to the file server.

[0160] Of course, after receiving the access request, the file server may also perform operations such as authentication on the mobile terminal. This embodiment does not introduce each operation performed during the mobile terminal accessing the file server one by one.

[0161] The selection operation received by the mobile terminal may be a click operation on a report template document; or an operation of inputting the name of a report template document, etc. This embodiment does not limit the implementation method of the selection operation.

[0162] In addition, when the mobile terminal displays the report template document through the document selection page, it can be displayed in pages; or dragged; or single page, etc. This embodiment does not limit the way in which the mobile terminal displays the report template document through the document selection page.

[0163] In other examples, the file server may also actively push a document selection page to the mobile terminal so that the mobile terminal can select a report template document on the document selection page; or, each time the file server receives a report template document, it pushes the report template document to the mobile terminal to determine whether the mobile terminal selects the report template document. This embodiment does not limit the way in which the mobile terminal selects the report template document.

[0164] Step 207, when receiving the data collection request sent by the mobile terminal, the file server generates a data collection page corresponding to the report template document based on the report template document and field attributes; and sends the data collection page to the mobile terminal for the mobile terminal to collect report data corresponding to multiple report fields.

[0165] In one example, the field attribute includes a first field attribute and a second field attribute; the first field attribute is used to indicate the collection method of the report data corresponding to the report field; the second field attribute is used to indicate the encoding of the report field. At this time, the file server generates a data collection page corresponding to the report template document based on the report template document and the field attribute, including: generating page content of the data collection page based on the report template document, the page content includes multiple report fields; generating a data input area of ​​the data collection page according to the collection method indicated by the first field attribute; establishing an association relationship between the second field attribute and the data input area to obtain the data collection page.

[0166] For example: Reference Figure 5 In the data collection page shown, the file server determines that the data input area of ​​the report field "Name" is a text input box, determines that the data input area of ​​the report field "Gender" is a text input box, and determines that the data input area of ​​the report field "Date of Birth" is a date selection box based on the first field attribute.

[0167] Optionally, the data input area displays input method prompt information, and the input method prompt information stops displaying after receiving the input operation. For example: Figure 5 "Please fill in" is used to prompt that the input method is text input, and "Please select" is used to prompt that the input method is "date selection".

[0168] In addition, the above field attributes may be configured by the user, or may be set by default on the configuration end. This embodiment does not limit the configuration method of the field attributes.

[0169] Step 208, the mobile terminal receives and displays the data collection page returned by the file server based on the report acquisition request; receives the report data input on the data collection page; and uploads the report data to the file server.

[0170] The report data is used by the file server to generate business reports based on the report template document and report data, and send the business reports to the mobile terminal.

[0171] In one example, receiving report data inputted on a data collection page includes: receiving report data inputted in a data input area. Figure 5 The user enters the name in the data input area corresponding to "Name" and the gender in the data input area corresponding to "Gender". After entering the data in sequence, all report data is obtained.

[0172] Since the data collection page also includes an association relationship between the second field attribute and the data input area, the mobile terminal can determine the second field attribute corresponding to the report data input in each data input area based on the association relationship, and send the report data and the correspondence relationship between the report data and the second field attribute to the file server. In this way, the file server can determine the filling position of the report data in the report template document based on the correspondence relationship.

[0173] Step 209 , the file server obtains the report data sent by the mobile terminal based on the data collection page; generates a business report using the report template document and the report data, and sends the business report to the mobile terminal.

[0174] Optionally, the file server uses a document parsing tool to fill the report data into a corresponding report template document to obtain a business report.

[0175] Optionally, after acquiring the report data, the file server directly uses the report data to generate a business report; or, the file server generates the business report using the report data when receiving a report generation request sent by the mobile terminal.

[0176] If the file server generates a business report using the report data only after receiving a report generation request sent by the mobile terminal, then before using the report template document and the report data to generate the business report, the process also includes: the mobile terminal sends a report generation request to the file server; accordingly, the file server receives the report generation request sent by the mobile terminal; based on the report generation request, fills the report data into the report template document; and uses the report template document after the data is filled in to generate a business report that meets the report generation requirements.

[0177] The report generation request includes a report generation requirement; the report generation requirement includes but is not limited to: a report format (such as PDF format, WORD format, EXCEL format, or Html format, etc.) and / or a font format in the report (such as Songti, Kaiti, Heiti, etc.). This embodiment does not limit the content of the report generation requirement.

[0178] In one example, a mobile terminal accesses a report generation webpage provided by a file server through a browser, and the report generation webpage includes an input area for report generation requirements and a request confirmation area; the mobile terminal receives a requirement input operation on the input area, and obtains a report generation requirement indicated by the requirement input operation; receives a confirmation operation on the request confirmation area; generates a report generation request based on the confirmation operation, and the report generation request carries the report generation requirement; thereafter, the mobile terminal sends the report generation request to the file server.

[0179] Among them, the input area can receive demand input operations through character input; or receive demand input operations through control selection, such as: displaying multiple optional requirements through controls for users to execute and select report generation requirements. This embodiment does not limit the way in which the input area receives demand input operations.

[0180] The request confirmation area can receive confirmation operations through control selection, such as displaying a submit option through a control for the user to perform a confirmation operation.

[0181] Afterwards, if the mobile terminal needs to change the report generation requirements, it can send a changed report generation request to the file server 120 again, and the changed report generation request includes the changed report generation requirements; accordingly, the file server receives the changed report generation request sent by the mobile terminal; fills the report data into the report template document based on the changed report generation request; and uses the report template document after the data is filled in to generate a business report that meets the changed report generation requirements.

[0182] Step 210: The mobile terminal receives the business report.

[0183] To sum up, the report generation method provided in this embodiment configures the report template document through the configuration end, and the file server generates a data collection page according to the configuration, so that the data to be collected for the business report is collected by the mobile end, and finally the file server generates the corresponding business report and exports it for download. Developers only need to perform field configuration according to the data to be collected on the report, and can realize the mobile end to collect report data without developing a data collection page for each report, which can reduce the time required for development.

[0184] In addition, when developing a data collection page on a mobile terminal, the file server needs to be restarted or a version update adapted to the data collection page needs to be performed, and this embodiment does not require the redevelopment of the data collection page on the mobile terminal. Therefore, the file server version does not need to be updated or restarted, and the collection and processing of new business can be quickly realized, thereby improving the efficiency of report generation.

[0185] In addition, by generating business reports according to report generation requirements, the needs of users for generating reports can be adaptively met, thereby improving the adaptability of generating business reports.

[0186] In addition, if the user wants to change the collected report fields, the developer can change the target report fields online through the configuration end to respond to changes in user needs in real time.

[0187] In addition, if the user wants to change the report generation requirements, he only needs to send the changed report generation requirements to the file server again to achieve real-time response to changes in user requirements.

[0188] Optionally, steps 201-204 may be independently implemented as embodiments of the configuration end; steps 205, 207 and 209 may be independently implemented as embodiments of the file server side; steps 206, 208 and 210 may be independently implemented as embodiments of the mobile end side.

[0189] Figure 6 is a block diagram of a report generation device provided by an embodiment of the present application. In this embodiment, the device is applied to Figure 1 The configuration end 110 in the report generation system shown is used as an example for explanation. The device comprises at least the following modules: a document acquisition module 610 , a report configuration module 620 , an attribute encoding module 630 and a data upload module 640 .

[0190] The document acquisition module 610 is used to acquire a report template document, wherein the report template document includes a plurality of report fields;

[0191] The report configuration module 620 is used to receive the configuration operation of the plurality of report fields and obtain the field attribute corresponding to each report field;

[0192] The attribute encoding module 630 is used to generate an attribute code corresponding to each field attribute using a preset document parsing tool;

[0193] The data upload module 640 is used to use the document parsing tool to upload the report template document and the attribute code to the file server, so that the file server uses the document parsing tool to parse the attribute code to obtain the field attributes; generate a data collection page corresponding to the report template document based on the report template document and the field attributes; send the data collection page to the mobile terminal so that the mobile terminal can collect the report data corresponding to the report template document; so that the file server can obtain the report data; use the report template document and the report data to generate a business report, and send the business report to the mobile terminal.

[0194] For relevant details, refer to the above method embodiment.

[0195] Figure 7 is a block diagram of a report generation device provided by an embodiment of the present application. In this embodiment, the device is applied to Figure 1 The file server 120 in the report generation system is used as an example for explanation. The device comprises at least the following modules: a data receiving module 710 , an attribute parsing module 720 , a page generating module 730 , a page sending module 740 , a data acquiring module 750 and a report generating module 760 .

[0196] The data receiving module 710 is used to receive a report template document and attribute codes uploaded by the configuration end, wherein the report template document includes multiple report fields; the attribute codes include attribute codes of field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives a configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field;

[0197] The attribute parsing module 720 is used to parse the attribute code using the document parsing tool to obtain the field attribute;

[0198] The page generation module 730 is used to generate a data collection page corresponding to the report template document based on the report template document and the field attributes when receiving the data collection request sent by the mobile terminal;

[0199] The page sending module 740 is used to send the data collection page to the mobile terminal so that the mobile terminal can collect the report data corresponding to the multiple report fields;

[0200] The data acquisition module 750 is used to acquire the report data sent by the mobile terminal based on the data collection page;

[0201] The report generation module 760 is used to generate a business report using the report template document and the report data, and send the business report to the mobile terminal.

[0202] For relevant details, refer to the above method embodiment.

[0203] Figure 8 is a block diagram of a report generation device provided by an embodiment of the present application. In this embodiment, the device is applied to Figure 1 The mobile terminal 130 in the report generation system is used as an example for explanation. The device comprises at least the following modules: a request sending module 810 , a page acquisition module 820 , a data collection module 830 , a data upload module 840 and a report acquisition module 850 .

[0204] The request sending module 810 is used to send a data collection request to the file server, wherein the data collection request is used to request the file server to send a data collection page corresponding to a report template document; the data collection page is generated based on the report template document and the field attributes after the file server receives the report template document and the attribute code uploaded by the configuration end, and uses the document parsing tool to parse the attribute code to obtain field attributes; the report template document includes multiple report fields; the attribute code includes the attribute codes of the field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives the configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field;

[0205] A page acquisition module 820, configured to receive and display a data collection page returned by the file server based on the report acquisition request;

[0206] A data collection module 830, used to receive report data input on the data collection page;

[0207] A data uploading module 840 is used to upload the report data to the file server, so that the file server generates a business report according to the report template document and the report data, and sends the business report to the mobile terminal;

[0208] The report acquisition module 850 is used to receive the business report.

[0209] For relevant details, refer to the above method embodiment.

[0210] It should be noted that: the report generation device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when performing report generation. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the report generation device is divided into different functional modules to complete all or part of the functions described above. In addition, the report generation device provided in the above embodiment and the report generation method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0211] Fig. 9 is a block diagram of a report generation device provided by an embodiment of the present application, the device may be Figure 1 The configuration terminal 110 in the report generation system shown is either a file server 120 or a mobile terminal 130. The device at least includes a processor 901 and a memory 902.

[0212] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0213] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction, which is used to be executed by the processor 901 to implement the report generation method provided in the method embodiment of the present application.

[0214] In some embodiments, the report generation device may further optionally include: a peripheral device interface and at least one peripheral device. The processor 901, the memory 902 and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral devices include but are not limited to: a radio frequency circuit, a touch display screen, an audio circuit, and a power supply.

[0215] Of course, the report generating device may also include fewer or more components, which is not limited in this embodiment.

[0216] Optionally, the present application also provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the report generation method of the above method embodiment.

[0217] Optionally, the present application also provides a computer product, which includes a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the report generation method of the above method embodiment.

[0218] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.

[0219] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A report generation method, characterized in that: For a configuration terminal, the method includes: Acquire a report template document, wherein the report template document includes a plurality of report fields; Receiving configuration operations on the multiple report fields, and obtaining field attributes corresponding to each report field; Use the preset document parsing tool to generate the attribute code corresponding to each field attribute; Use the document parsing tool to upload the report template document and the attribute code to the file server, so that the file server uses the document parsing tool to parse the attribute code to obtain the field attributes; generate a data collection page corresponding to the report template document based on the report template document and the field attributes; send the data collection page to the mobile terminal so that the mobile terminal can collect the report data corresponding to the report template document; so that the file server can obtain the report data; use the report template document and the report data to generate a business report, and send the business report to the mobile terminal.

2. The method according to claim 1, characterized in that The receiving of configuration operations on the plurality of report fields to obtain field attributes corresponding to each report field includes: Receive a collection mode configuration operation for each report field and obtain a first field attribute; and / or, An encoding configuration operation for each report field is received to obtain a second field attribute.

3. The method according to claim 1, characterized in that The method of using a preset document parsing tool to generate an attribute code corresponding to each field attribute includes: Use the JasperReport template design tool or the Word tool to generate the attribute code corresponding to each field attribute.

4. The method according to claim 1, characterized in that: After uploading the report template document and the attribute code to the file server using the document parsing tool, the method further includes: Receiving a modification operation on a target report field among the plurality of report fields, and obtaining the modified report template document; receiving a configuration operation on the changed target report field, and obtaining the changed field attribute corresponding to the changed target report field; Using the document parsing tool to generate the changed attribute code corresponding to the changed field attribute; The document parsing tool is used to upload the modified report template document and the modified attribute code to the file server.

5. A report generation method, characterized in that: Used in a file server, the method comprises: Receive a report template document and attribute code uploaded by a configuration end, wherein the report template document includes multiple report fields; the attribute code includes attribute codes of field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives a configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field; Using the document parsing tool to parse the attribute code to obtain the field attribute; When receiving the data collection request sent by the mobile terminal, generating a data collection page corresponding to the report template document based on the report template document and the field attributes; Sending the data collection page to the mobile terminal so that the mobile terminal can collect report data corresponding to the multiple report fields; Acquire report data sent by the mobile terminal based on the data collection page; A business report is generated using the report template document and the report data, and the business report is sent to the mobile terminal.

6. The method according to claim 5, characterized in that The field attributes include a first field attribute and a second field attribute; the first field attribute is used to indicate a collection method of report data corresponding to the report field; the second field attribute is used to indicate a code of the report field; The step of generating a data collection page corresponding to the report template document based on the report template document and the field attributes includes: Generate page content of the data collection page based on the report template document, wherein the page content includes the multiple report fields; Generating a data input area of ​​the data collection page according to the collection method indicated by the first field attribute; An association relationship between the second field attribute and the data input area is established to obtain the data collection page.

7. The method according to claim 5, characterized in that The generating of a business report using the report template document and the report data includes: Receiving a report generation request sent by the mobile terminal, wherein the report generation request includes a report generation requirement; Filling the report data into the report template document based on the report generation request; The business report that meets the report generation requirements is generated using the report template document after the data is filled in.

8. A report generation method, characterized in that: For a mobile terminal, the method includes: Sending a data collection request to a file server, the data collection request is used to request the file server to send a data collection page corresponding to a report template document; the data collection page is generated based on the report template document and the field attributes by using a document parsing tool to parse the attribute code after the file server receives the report template document and attribute code uploaded by the configuration end; the report template document includes multiple report fields; the attribute code includes attribute codes of field attributes of the multiple report fields; the attribute code of each field attribute is generated by using a preset document parsing tool after the configuration end receives a configuration operation on the corresponding report field and obtains the field attribute corresponding to the report field; Receiving and displaying a data collection page returned by the file server based on the data collection request; Receiving report data input on the data collection page; Uploading the report data to the file server, so that the file server generates a business report according to the report template document and the report data, and sends the business report to the mobile terminal; The business report is received.

9. The method according to claim 8, characterized in that Before receiving the business report, the method further includes: Sending a report generation request to the file server, the report generation request including a report generation requirement; allowing the file server to fill the report data into the report template document based on the report generation request; and using the report template document after the data is filled in to generate the business report that meets the report generation requirement.

10. A report generation device, characterized in that: The device includes a processor and a memory; the memory stores a program, and the program is loaded and executed by the processor to implement the report generation method as described in any one of claims 1 to 4, or to implement the report generation method as described in any one of claims 5 to 7, or to implement the report generation method as described in any one of claims 8 to 9.

11. A computer-readable storage medium, characterized in that: The storage medium stores a program, and when the program is executed by the processor, it is used to implement the report generation method according to any one of claims 1 to 4, or the report generation method according to any one of claims 5 to 7, or the report generation method according to any one of claims 8 to 9.

12. A report generation system, characterized in that: The system comprises: a configuration terminal, a file server communicatively connected to the configuration terminal, and a mobile terminal communicatively connected to the file server; The configuration end is used to obtain a report template document, the report template document includes multiple report fields; receive configuration operations on the multiple report fields, and obtain field attributes corresponding to each report field; use a preset document parsing tool to generate an attribute code corresponding to each field attribute; and use the document parsing tool to upload the report template document and the attribute code to the file server; The file server is used to receive the report template document and attribute code uploaded by the configuration terminal; The mobile terminal is used to send a data collection request to the file server; The file server is used to generate a data collection page corresponding to the report template document based on the report template document and the field attributes when receiving a data collection request sent by the mobile terminal; and send the data collection page corresponding to the report template document to the mobile terminal; The mobile terminal is used to receive and display the data collection page; receive the report data input on the data collection page; and upload the report data to the file server; The file server is used to obtain the report data sent by the mobile terminal based on the data collection page; generate a business report using the report template document and the report data, and send the business report to the mobile terminal; The mobile terminal is used to receive the business report.