Invoice processing method and device, computer device and storage medium

By caching and returning only the pagination data of the main document when the document is opened, and retrieving the pagination data of the target category of the sub-document when the sub-document interface is displayed, the problem of excessive memory and network consumption in the processing of large amounts of documents is solved, and efficient document display and processing are achieved.

CN115221222BActive Publication Date: 2026-04-07KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

When dealing with large amounts of document data, traditional methods transmit all document data to the front end at once, resulting in excessive memory consumption, high performance overhead, and a tendency for the front end to crash. Additionally, network transmission overhead is significant.

Method used

When a document is opened, the document data is loaded and cached. Only the main document pagination data is returned. When the target sub-document interface is triggered to be displayed, the corresponding category of sub-document pagination data is retrieved from the cache to avoid repeated loading and transmission.

Benefits of technology

It reduced computer-related overhead, prevented front-end page crashes, reduced network transmission consumption, and improved the efficiency and flexibility of document processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115221222B_ABST
    Figure CN115221222B_ABST
Patent Text Reader

Abstract

This application relates to a document processing method, apparatus, computer equipment, and storage medium, applicable to Enterprise Resource Planning (ERP) systems, including but not limited to manufacturing management systems, supply chain systems, human resources systems, financial systems, tax systems, and auditing systems. The method includes: when a document is opened, loading and caching the document data, returning the main document pagination data from the document data, so that the main document pagination data is displayed on the main document interface after the document is opened; the main document interface has at least one corresponding sub-document interface, different sub-document interfaces are used to display different categories of data in the document data; when a target sub-document interface is triggered to display, retrieving the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data under the target category is displayed on the target sub-document interface. This method can reduce computer overhead.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of software, in particular to a bill processing method and device, computer equipment and storage medium. BACKGROUND

[0002] With the development of computers, a backend for managing bills appears. The backend displays bill data on a front-end interface by reading bill data stored in a database and interacting with the front end. Traditionally, the backend gives the read bill data to the front end at one time, and the front end displays the bill data after filtering, for example, filtering other page data and displaying only the data of the current page.

[0003] However, when the amount of bill data is large, giving all bill data to the front end at one time can easily consume too much memory and occupy too much performance overhead, causing the front-end page to crash, and the network transmission overhead is large. SUMMARY

[0004] Therefore, it is necessary to provide a bill processing method and device, computer equipment, storage medium and computer program product capable of reducing computer overhead to solve the above technical problems.

[0005] In a first aspect, the present application provides a bill processing method. The method comprises:

[0006] In the case that a bill is opened, loading and caching bill data of the bill, and returning main bill page data in the bill data, so that the main bill page data is displayed on a main bill interface after the bill is opened; the main bill interface has at least one corresponding sub-bill interface, and different sub-bill interfaces are used to display data of different categories in the bill data.

[0007] In the case that a target sub-bill interface is triggered to be displayed, obtaining sub-bill page data under a target category corresponding to the target sub-bill interface from the cached bill data, so that the sub-bill page data under the target category is displayed on the target sub-bill interface.

[0008] In one of the embodiments, different bill interfaces have corresponding tabs; after the loading and caching of the bill data of the bill, the method further comprises:

[0009] Determining the number of entries under the category corresponding to any bill interface from the cached bill data; the number of entries is displayed in the tab corresponding to the any bill interface; the tab corresponding to the any bill interface is displayed in each bill interface, and is used to trigger the display of the any bill interface.

[0010] The any bill interface is the main bill interface or the sub-bill interface.

[0011] In one of the embodiments, when the sub-invoice page data under the target category corresponding to the target sub-invoice interface is obtained from the cached invoice data, the method further comprises:

[0012] Confirming the display configuration parameters set for the main invoice interface, so that the sub-invoice page data under the target category is displayed on the target sub-invoice interface according to the display configuration parameters.

[0013] In one of the embodiments, the method further comprises:

[0014] In the case of triggering the return to the main invoice interface, obtaining the display configuration parameters set for the target sub-invoice interface, so that the main invoice page data is displayed on the main invoice interface according to the display configuration parameters.

[0015] In one of the embodiments, the sub-invoice page data is the first page of sub-invoice page data; the method further comprises:

[0016] In the case of triggering the page turning of the target sub-invoice interface, obtaining the second page of sub-invoice page data under the target category corresponding to the target sub-invoice interface from the cached invoice data, so that the second page of sub-invoice page data is displayed on the target sub-invoice interface; the second page is the page pointed by the page turning operation.

[0017] In one of the embodiments, the data obtaining event is generated when the invoice is opened and when the target sub-invoice interface is triggered to be displayed; the data obtaining event is used to obtain data from the database;

[0018] The loading and caching of the invoice data of the invoice when the invoice is opened comprises:

[0019] In the case of opening the invoice, in response to the generated data obtaining event, loading the invoice data of the invoice from the database and caching the invoice data;

[0020] The obtaining of the sub-invoice page data under the target category corresponding to the target sub-invoice interface from the cached invoice data when the target sub-invoice interface is triggered to be displayed comprises:

[0021] In the case of triggering the display of the target sub-invoice interface, intercepting the generated data obtaining event, and obtaining the sub-invoice page data under the target category corresponding to the target sub-invoice interface from the cached invoice data.

[0022] In a second aspect, the application further provides a method for processing invoices. The method comprises:

[0023] In response to an opening operation for a bill, a server is triggered to load and cache bill data of the bill, and main bill page data in the bill data cached by the server is acquired to be displayed in a main bill interface; the main bill interface has at least one corresponding sub-bill interface; different sub-bill interfaces are used to display data of different categories in the bill data; and the main bill interface and the sub-bill interfaces are respectively displayed under corresponding bill tabs.

[0024] In response to a triggering operation on a bill tab of a target sub-bill interface, sub-bill page data under a target category is displayed on the target sub-bill interface; and the sub-bill page data under the target category is acquired from the bill data cached by the server.

[0025] In a third aspect, the present application further provides a bill processing apparatus. The apparatus comprises:

[0026] A first processing module is configured to, in a case where a bill is opened, load and cache bill data of the bill, and return main bill page data in the bill data, so that the main bill page data is displayed in a main bill interface after the bill is opened; the main bill interface has at least one corresponding sub-bill interface, and different sub-bill interfaces are used to display data of different categories in the bill data.

[0027] A second processing module is configured to, in a case where a target sub-bill interface is triggered to be displayed, acquire sub-bill page data under a target category corresponding to the target sub-bill interface from the cached bill data, so that the sub-bill page data under the target category is displayed in the target sub-bill interface.

[0028] In a fourth aspect, the present application further provides a bill processing apparatus. The apparatus comprises:

[0029] A first response module is configured to, in response to an opening operation for a bill, trigger a server to load and cache bill data of the bill, and acquire main bill page data in the bill data cached by the server to be displayed in a main bill interface; the main bill interface has at least one corresponding sub-bill interface; different sub-bill interfaces are used to display data of different categories in the bill data; and the main bill interface and the sub-bill interfaces are respectively displayed under corresponding bill tabs.

[0030] A second response module is configured to, in response to a triggering operation on a bill tab of a target sub-bill interface, display sub-bill page data under a target category on the target sub-bill interface; and the sub-bill page data under the target category is acquired from the bill data cached by the server.

[0031] Fifthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the steps of the above-described document processing method.

[0032] Sixthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, the computer program being executed by a processor using the steps of the above-described document processing method.

[0033] Seventhly, this application also provides a computer program product. The computer program product includes a computer program that is processed by a processor to perform the steps of the above-described document processing method.

[0034] The aforementioned document processing method, apparatus, computer equipment, storage medium, and computer program product, by loading and caching the document data when a document is opened, and returning the main document pagination data from the document data, allows the main document pagination data to be displayed on the main document interface after the document is opened. This avoids sending all document data to the front end at once, reducing computer-related overhead, by only returning the main document pagination data. The main document interface has at least one corresponding sub-document interface, with different sub-document interfaces used to display different categories of data from the document data. When a target sub-document interface is triggered to be displayed, the sub-document pagination data of the target category corresponding to the target sub-document interface is retrieved from the cached document data, allowing the sub-document pagination data of the target category to be displayed on the target sub-document interface. This avoids repeatedly loading document data when displaying document data on the sub-document interface, and by only returning the sub-document pagination data of the target category, further reduces computer-related overhead. Attached Figure Description

[0035] Figure 1 This is an application environment diagram of a document processing method in one embodiment;

[0036] Figure 2 This is a flowchart illustrating a document processing method in one embodiment;

[0037] Figure 3 This is a schematic diagram of the interface of a document processing method in one embodiment;

[0038] Figure 4 This is a schematic diagram of the interface of a document processing method in one embodiment;

[0039] Figure 5 This is a schematic diagram of the interface of a document processing method in one embodiment;

[0040] Figure 6 This is a schematic diagram illustrating the principle of a document processing method in one embodiment;

[0041] Figure 7 This is a flowchart illustrating a document processing method in one embodiment;

[0042] Figure 8 This is a structural block diagram of a document processing device in one embodiment;

[0043] Figure 9 This is a structural block diagram of a document processing device in one embodiment;

[0044] Figure 10 This is an internal structural diagram of a computer device in one embodiment;

[0045] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0047] The document processing method provided in this application can be applied to, for example, Figure 1 In the application environment shown, terminal 110 communicates with server 120 via a network. A data storage system can store the data that server 120 needs to process. The data storage system can be integrated onto server 120, or it can be located in the cloud or on other network servers. Terminal 110 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Server 120 can be a standalone server or a server cluster consisting of multiple servers.

[0048] Terminal 110 can display an interface for manipulating documents. When a document is opened, server 120 loads and caches the document data, and returns the main document pagination data from the document data to terminal 110, so that the main document pagination data is displayed on the main document interface of terminal 110 after the document is opened. The main document interface has at least one corresponding sub-document interface, and different sub-document interfaces are used to display different categories of data in the document data. When a target sub-document interface is triggered to be displayed, server 120 retrieves the sub-document pagination data of the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data of the target category is displayed on the target sub-document interface of terminal 110.

[0049] In one embodiment, terminal 110 may also be replaced by a server, and there is no limitation on this.

[0050] The embodiments of this application can be applied to various Enterprise Resource Planning (ERP) systems that require document processing, including but not limited to production management systems, supply chain systems, human resources systems, financial systems, tax systems, and auditing systems.

[0051] In one embodiment, such as Figure 2 As shown, a document processing method is provided. This embodiment illustrates the method applied to a server. It is understood that this method can also be applied to a terminal, or to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0052] S202, when a document is opened, load and cache the document data of the document, and return the main document pagination data in the document data, so that the main document pagination data is displayed in the main document interface after the document is opened; the main document interface has at least one corresponding sub-document interface, and different sub-document interfaces are used to display different categories of data in the document data.

[0053] The master document pagination data refers to at least a portion of the document data displayed on the paginated pages of the master document interface. The master document interface is used to display document data. It can be understood that when there is only one pagination, meaning only one page is needed to display all the document data, the master document pagination data constitutes the document data.

[0054] Specifically, the terminal displays an interface for manipulating documents. When a document is opened, the server loads the document data from the database and caches it. The server determines the main document pagination data within the document data and returns it to the terminal, so that the main document pagination data is displayed on the terminal's main document interface after the document is opened. The main document interface has at least one corresponding sub-document interface, with different sub-document interfaces used to display different categories of data from the document data. For example... Figure 3 The interface diagram shown is shown below. Figure 3 The document interface displayed is the main document interface. The paginated data in the main document includes the first five items, which are displayed on the main document interface.

[0055] S204, when the target sub-document interface is triggered to be displayed, retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data under the target category is displayed on the target sub-document interface.

[0056] The sub-document pagination data refers to at least a portion of the category data displayed on the pagination of the sub-document interface. Category data refers to the data within a specific category of the document data. It can be understood that if there is only one category, the category data is the document data. The target sub-document interface is any one of at least one sub-document interfaces.

[0057] Specifically, when the target sub-document interface is triggered to be displayed, the server retrieves the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, and returns the sub-document pagination data under the target category to the terminal, so that the sub-document pagination data under the target category is displayed on the terminal's target sub-document interface. For example... Figure 4 The interface diagram shown is as follows. Figure 4 The document interface shown is the target sub-document interface. The target category can be the surplus product category. The sub-document pagination data under the target category includes the first product, the second product, the seventh product, the eighth product, and the eleventh product.

[0058] This is understandable, since the sub-document pagination data is retrieved from the cached document data, the number of sub-documents can be expanded indefinitely without increasing the memory occupied by the document data.

[0059] In one embodiment, the sub-document interface has corresponding tabs, and different tabs display the number of entries for the document under different categories; the sum of the number of entries corresponding to at least one sub-document interface is displayed in the tab corresponding to the main document interface.

[0060] In one embodiment, the server can determine the number of target entries under the target category corresponding to the target sub-document interface from the cached document data.

[0061] In one embodiment, the display configuration parameters of different document interfaces are kept synchronized. When the target sub-document interface is triggered to be displayed, the server can synchronize the display configuration parameters of the main document interface with those of the target sub-document interface. When a return to the main document interface is triggered, the server can synchronize the display configuration parameters of the target sub-document interface with those of the main document interface.

[0062] In one embodiment, when a page is turned on the target sub-document interface, the server can retrieve sub-document page data that is not currently displayed from the cached document data and return it to the terminal. Here, "not currently displayed" refers to a page different from the current page.

[0063] In one embodiment, the terminal can perform operations such as deleting and modifying documents. The server can cache the modified document data and store it in the database only when the document is triggered to save.

[0064] In one embodiment, the server can use the processing model corresponding to the document to calculate the document pagination data.

[0065] In one embodiment, when document pagination data is to be retrieved, the server can load document data from the database and retrieve document pagination data from it, or retrieve document pagination data from cached document data, based on the generated data retrieval event.

[0066] In one embodiment, the server can stream document data via JDBC (Java Database Connectivity) to avoid running out of memory when too many documents are open.

[0067] The above document processing method loads and caches the document data when a document is opened, and returns the main document pagination data from the document data. This allows the main document pagination data to be displayed on the main document interface when the document is opened. This avoids sending all document data to the front end at once, preventing page crashes caused by excessive data loading and rendering, and reducing computer-related overhead. The main document interface has at least one corresponding sub-document interface, with different sub-document interfaces displaying different categories of data from the document data. When the target sub-document interface is triggered to be displayed, the sub-document pagination data for the target category corresponding to the target sub-document interface is retrieved from the cached document data, allowing the sub-document pagination data for the target category to be displayed on the target sub-document interface. This avoids repeatedly loading document data when displaying document data on the sub-document interface, and only returns the sub-document pagination data for the target category, thereby reducing network transmission consumption and computer-related overhead.

[0068] In one embodiment, different document interfaces have corresponding tabs; after loading and caching the document data, the method further includes: determining the number of entries under the category corresponding to any document interface from the cached document data; the number of entries is displayed in the tab corresponding to any document interface; the tab corresponding to any document interface is displayed in each document interface to trigger the display of any document interface; wherein, any document interface is a main document interface or a sub-document interface.

[0069] Tabs are page elements used to represent the document interface. Generally, clicking a tab displays the relevant document interface. The entry count is the number of objects belonging to a certain category in the document data. Any document interface can be either a main document interface or a sub-document interface.

[0070] Specifically, different sub-document interfaces have corresponding tabs. The server determines the number of entries under the category corresponding to any document interface from the cached document data and displays the entry count in the corresponding tab of any document interface via the terminal. The tab corresponding to any document interface is displayed in each document interface and is used to trigger the display of that document interface. It can be understood that clicking a tab triggers the display of the corresponding document interface. Furthermore, the total number of entries corresponding to multiple sub-document interfaces is the total number of entries corresponding to the main document interface. For example... Figure 3 The interface diagram shown (301) includes tabs corresponding to the main document interface and tabs corresponding to the sub-document interfaces. Clicking a tab in the main document interface will trigger the display of the corresponding main document interface. Clicking a tab in the sub-document interface will trigger the display of the corresponding sub-document interface. The main document interface tab displays 12 entries, while the sub-document interface tabs display 6, 4, and 2 entries respectively. The total number of entries in the three sub-document interfaces is equal to the number of entries displayed in the main document interface tab.

[0071] In one embodiment, during the modification of a document, the number of journal entries corresponding to the modified document data is updated and displayed in real time. This allows users to quickly grasp the changes in the document data.

[0072] In this embodiment, tabs are used to display the number of entries under the corresponding category of any document interface, allowing users to easily understand the number of objects of different categories in the document data, while also meeting users' needs to quickly view differences.

[0073] In one embodiment, when retrieving sub-document pagination data under the target category corresponding to the target sub-document interface from cached document data, the method further includes: confirming the display configuration parameters set for the main document interface, so that the sub-document pagination data under the target category is displayed on the target sub-document interface according to the display configuration parameters.

[0074] The display configuration parameters are used to configure the display of document data. For example, display configuration parameters can include the sorting method of multiple objects in the document, the displayed row height and column width, hidden items, etc.

[0075] Specifically, when retrieving sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, the server confirms the display configuration parameters set for the main document interface and synchronously applies the display configuration parameters set for the main document interface to the sub-document interface, so that the sub-document pagination data under the target category is displayed in the target sub-document interface according to the display configuration parameters.

[0076] In one embodiment, the display configuration parameters for the master document interface and the display configuration parameters for the sub-document interface can be the same set of display configuration parameters.

[0077] In this embodiment, the display configuration parameters set for the main document interface are synchronously applied to the target sub-document interface. This way, after the user sets the display effect in the main document interface, they do not need to set it again in the sub-document interface; the settings are automatically synchronized without the user's awareness, thereby increasing the user-friendliness of the document interface operation.

[0078] In one embodiment, the method further includes: when a return to the main document interface is triggered, obtaining the display configuration parameters set for the target sub-document interface, so that the paginated data of the main document is displayed in the main document interface according to the display configuration parameters.

[0079] Specifically, when the return to the main document interface is triggered, the server obtains the display configuration parameters set for the target sub-document interface and applies them synchronously to the main document interface, so that the paginated data of the main document is displayed in the main document interface according to the display configuration parameters.

[0080] In this embodiment, the display configuration parameters set in the target sub-document interface are synchronously applied to the main document interface. This way, after the user sets the display effect in the sub-document interface, they do not need to set it again in the main document interface; the settings are automatically synchronized without the user's awareness, thereby increasing the user-friendliness of the document interface operation.

[0081] In one embodiment, the sub-document pagination data is the sub-document pagination data of the first page; the method further includes: when the target sub-document interface is triggered to turn pages, retrieving the sub-document pagination data of the second page under the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data of the second page is displayed on the target sub-document interface; the second page is the page pointed to by the pagination operation.

[0082] It's understandable that the page-turning operation can specify the next page after the first page as the second page, or you can enter a page number to use as the second page.

[0083] Specifically, the sub-document pagination data is the sub-document pagination data of the first page. When the target sub-document interface is triggered to paginate, the server retrieves the sub-document pagination data of the second page under the target category corresponding to the target sub-document interface from the cached document data, and returns the second page sub-document pagination data to the terminal, so that the second page sub-document pagination data is displayed on the target sub-document interface of the terminal. For example... Figure 5 The interface diagram shown is as follows. Figure 5 The document interface shown is the target sub-document interface. The products included in the first page of the sub-document pagination data are... Figure 4The first, second, seventh, eighth, and eleventh products are shown. The product included in the sub-document pagination data of the second page is the twelfth product. When the target sub-document interface is triggered to turn the page, the twelfth product is displayed on the target sub-document interface of the terminal.

[0084] In this embodiment, the server retrieves sub-document pagination data for different pages from the cached document data and returns it to the terminal for display. This avoids retrieving document pagination data from the database multiple times, reduces interaction with the database, and thus reduces network bandwidth and computer resource consumption.

[0085] In one embodiment, the document data is first document data; the method further includes: caching second document data obtained after modifying the document; and storing the cached second document data in the database when the document is triggered to be saved.

[0086] Specifically, the document data is the first document data. The server can cache the second document data obtained after modifying the document. When the document is saved, the server stores the cached second document data in the database.

[0087] In this embodiment, the server caches the second document data until the document is triggered to be saved, and then stores it in the database. This avoids the terminal modifying the document multiple times, which would cause the server to interact with the database multiple times, thereby reducing network bandwidth consumption and computer resource consumption.

[0088] In one embodiment, returning the master document pagination data from the document data includes: creating a processing model for the document; wherein different documents correspond to their own processing models; using the processing model to calculate the master document pagination data from the cached document data; and obtaining the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data includes: using the processing model to calculate the target pagination data from the cached document data; the target pagination data is the sub-document pagination data under the target category corresponding to the target sub-document interface.

[0089] Specifically, the server creates a processing model for each document; different documents have their own corresponding processing models. The server uses the processing model to calculate the main document pagination data in the cached document data. The server also uses the processing model to calculate the target pagination data in the cached document data.

[0090] In one embodiment, document data is cached in the processing model. This means that all document data exists in the server's processing model, and the document data can be queried in real time without needing to save it first before switching tabs.

[0091] In this embodiment, different documents correspond to different processing models, and the processing models are used to calculate the document pagination data. This allows for the expansion of new processing models when multiple documents are opened, thereby improving the flexibility of document processing.

[0092] In one embodiment, a data retrieval event is generated when a document is opened and when the target sub-document interface is triggered to be displayed; the data retrieval event is used to retrieve data from the database; when a document is opened, loading and caching the document data of the document includes: when a document is opened, in response to the generated data retrieval event, loading the document data of the document from the database and caching the document data; when the target sub-document interface is triggered to be displayed, retrieving the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data includes: when the target sub-document interface is triggered to be displayed, intercepting the generated data retrieval event and retrieving the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data.

[0093] The data acquisition event is used to retrieve data from the database. Data acquisition events are generated when a document is opened and when the target sub-document interface is triggered for display. To further optimize the existing document processing system and reduce interaction with the database, this embodiment implements interception processing for the data acquisition event.

[0094] Specifically, when a document is opened, a data retrieval event is generated. In response, the server loads the document data from the database and caches it. When the target sub-document interface is triggered to display, a data retrieval event is also generated, following the processing logic of the original document processing system. The server intercepts this event and retrieves the sub-document pagination data corresponding to the target category from the cached document data. In this way, this embodiment can further optimize the original document processing system and reduce computer-related overhead.

[0095] In this embodiment, the data acquisition event is processed differently according to different interface operation situations, which allows for further optimization on the original document processing system without the need to develop a new document processing system, thereby reducing computer resource consumption.

[0096] In one embodiment, such as Figure 6The diagram illustrates the workflow of a document processing system. The system comprises a server and a terminal. Specifically, a user opens a document on the terminal interface. When a document is opened, the terminal requests the main document's pagination data from the server. The server loads and caches the document's data from the database. The server creates a processing model to process the document data, obtaining the main document's pagination data, and returns it to the terminal, ensuring that the main document's pagination data is displayed on the terminal's main document interface after the document is opened. The main document interface has at least one corresponding sub-document interface, with different sub-document interfaces displaying different categories of data within the document. Different sub-document interfaces have corresponding tabs. When a user switches tabs on the terminal interface, and the target sub-document interface is triggered to display, the terminal requests the sub-document's pagination data for the target category from the server. The server uses a processing model to retrieve paginated sub-document data under the target category from cached document data and returns it to the terminal, allowing the paginated sub-document data under the target category to be displayed on the target sub-document interface. When the user performs a document modification operation on the terminal interface, the terminal sends the information of adding a new entry to the server. The server uses the processing model to update the document data, obtaining the second document data. When the user performs a document save operation on the terminal interface, the terminal notifies the server to save the document, and the server stores the cached second document data from the processing model into the database.

[0097] In one embodiment, such as Figure 7 As shown, a document processing method is provided. This embodiment illustrates the method applied to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0098] S702, in response to an open operation on a document, triggers the server to load and cache the document data of the document, and retrieves the main document pagination data from the document data cached on the server to display in the main document interface; the main document interface has at least one corresponding sub-document interface; different sub-document interfaces are used to display different categories of data in the document data; the main document interface and the sub-document interface are displayed under their respective document tabs.

[0099] Specifically, in response to an open operation on a document, the terminal triggers the server to load and cache the document data. The terminal retrieves the main document pagination data from the cached document data on the server and displays it in the main document interface. The main document interface has at least one corresponding sub-document interface; different sub-document interfaces are used to display different categories of data from the document data, and the main document interface and sub-document interfaces are displayed under their respective document tabs.

[0100] S704, in response to a triggered operation on a document tab of the target sub-document interface, displays the sub-document pagination data under the target category on the target sub-document interface; the sub-document pagination data under the target category is obtained from the document data cached on the server.

[0101] Specifically, in response to a trigger operation on the document tab of the target sub-document interface, the terminal displays the paginated sub-document data under the target category on the target sub-document interface. The paginated sub-document data under the target category is retrieved from the document data cached on the server. In essence, by triggering a document tab, the corresponding sub-document interface is displayed, thus meeting the user's need for quick viewing.

[0102] The above document processing method, in response to an open operation on a document, triggers the server to load and cache the document data, retrieves the main document pagination data from the cached data, and displays it in the main document interface. The main document interface has at least one corresponding sub-document interface; different sub-document interfaces display different categories of data from the document data; the main document interface and sub-document interfaces are displayed under their respective document tabs. This method retrieves only the main document pagination data, avoiding the need to retrieve all document data at once and reducing computer overhead. In response to a trigger operation on a document tab of a target sub-document interface, the target category's sub-document pagination data is displayed on the target sub-document interface; this data is retrieved from the document data cached on the server. This avoids repeatedly loading document data when displaying document data in the sub-document interface and only retrieves the target category's sub-document pagination data, further reducing computer overhead.

[0103] Specifically, in response to a trigger operation on the document tab of the target sub-document interface, the terminal retrieves the sub-document pagination data under the target category sent by the server and displays it on the target sub-document interface. The sub-document pagination data under the target category is retrieved from the document data cached on the server.

[0104] It should be understood that although the steps in the flowcharts of some embodiments of this application are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple steps or multiple stages, which are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0105] Based on the same inventive concept, this application also provides a document processing apparatus for implementing the document processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more document processing apparatus embodiments provided below can be found in the limitations of the document processing method described above, and will not be repeated here.

[0106] In one embodiment, such as Figure 8 As shown, a document processing device 800 is provided, including: a first processing module 802 and a second processing module 804, wherein:

[0107] The first processing module 802 is used to load and cache the document data of the document when the document is opened, and return the main document pagination data in the document data, so that the main document pagination data is displayed in the main document interface after the document is opened; the main document interface has at least one corresponding sub-document interface, and different sub-document interfaces are used to display different categories of data in the document data.

[0108] The second processing module 804 is used to retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data when the target sub-document interface is triggered to be displayed, so that the sub-document pagination data under the target category is displayed on the target sub-document interface.

[0109] In one embodiment, different document interfaces have corresponding tabs; after loading and caching the document data, the document processing device 800 is further used to determine the number of entries under the category corresponding to any document interface from the cached document data; the number of entries is displayed in the tab corresponding to any document interface; the tab corresponding to any document interface is displayed in each document interface to trigger the display of any document interface; wherein, any document interface is a main document interface or a sub-document interface.

[0110] In one embodiment, the second processing module 804 is further configured to, when retrieving sub-document pagination data under the target category corresponding to the target sub-document interface from cached document data, confirm the display configuration parameters set for the main document interface, so that the sub-document pagination data under the target category is displayed on the target sub-document interface according to the display configuration parameters. In one embodiment, the document processing device 800 is further configured to, upon triggering a return to the main document interface, retrieve the display configuration parameters set for the target sub-document interface, so that the main document pagination data is displayed on the main document interface according to the display configuration parameters.

[0111] In one embodiment, the sub-document pagination data is the sub-document pagination data of the first page; the document processing device 800 is further configured to, when the target sub-document interface is triggered to turn pages, retrieve the sub-document pagination data of the second page under the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data of the second page is displayed on the target sub-document interface; the second page is the page pointed to by the page turning operation.

[0112] In one embodiment, a data acquisition event is generated when a document is opened and when the target sub-document interface is triggered to be displayed; the data acquisition event is used to retrieve data from the database; the first processing module 802 is further configured to, in response to the generated data acquisition event when the document is opened, load the document data of the document from the database and cache the document data; the first processing module 802 is further configured to, in response to the generated data acquisition event when the target sub-document interface is triggered to be displayed, intercept the generated data acquisition event and retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data.

[0113] The aforementioned document processing device loads and caches document data when a document is opened, and returns the main document pagination data from the document data. This allows the main document pagination data to be displayed on the main document interface when the document is opened. By returning only the main document pagination data, all document data is avoided from being sent to the front end at once, reducing computer overhead. The main document interface has at least one corresponding sub-document interface, with different sub-document interfaces displaying different categories of data from the document data. When a target sub-document interface is triggered to be displayed, the sub-document pagination data corresponding to the target category for the target sub-document interface is retrieved from the cached document data, allowing the sub-document pagination data of the target category to be displayed on the target sub-document interface. This avoids repeatedly loading document data when displaying document data on the sub-document interface, and by returning only the sub-document pagination data of the target category, computer overhead is further reduced.

[0114] For specific limitations regarding the aforementioned document processing device, please refer to the limitations of the aforementioned document processing method above, which will not be repeated here. Each module in the aforementioned document processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0115] In one embodiment, such as Figure 9 As shown, a document processing device 900 is provided, including: a first response module 902 and a second response module 904, wherein:

[0116] The first response module 902 is used to respond to the opening operation of a document, trigger the server to load and cache the document data of the document, and obtain the main document pagination data in the document data cached by the server to display in the main document interface; the main document interface has at least one corresponding sub-document interface; different sub-document interfaces are used to display different categories of data in the document data; the main document interface and the sub-document interface are displayed under the corresponding document tabs respectively;

[0117] The second response module 904 is used to respond to the triggered operation of the document tab of the target sub-document interface and display the sub-document pagination data under the target category on the target sub-document interface; the sub-document pagination data under the target category is obtained from the document data cached on the server.

[0118] The aforementioned document processing device, in response to an open operation on a document, triggers the server to load and cache the document data, retrieves the main document pagination data from the server-cached data, and displays it in the main document interface. The main document interface has at least one corresponding sub-document interface; different sub-document interfaces display different categories of data from the document data; the main document interface and sub-document interfaces are displayed under their respective document tabs. This approach retrieves only the main document pagination data, avoiding the need to retrieve all document data at once and reducing computer overhead. In response to a trigger operation on a document tab of a target sub-document interface, the device displays the sub-document pagination data under the target category on the target sub-document interface; this data is retrieved from the document data cached on the server. This avoids repeatedly loading document data when displaying document data in the sub-document interface and only retrieves the sub-document pagination data under the target category, further reducing computer overhead.

[0119] For specific limitations regarding the aforementioned document processing device, please refer to the limitations of the aforementioned document processing method above, which will not be repeated here. Each module in the aforementioned document processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0120] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores document data. The I / O interfaces allow the processor to exchange information with external devices. The communication interface allows communication with external terminals via a network connection. When executed by the processor, the computer program implements a document processing method.

[0121] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a document processing method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0122] Those skilled in the art will understand that Figure 10 and Figure 11The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0123] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0124] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0125] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0126] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0127] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0128] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A document processing method, characterized in that, Applied to a server; the method includes: When a document is opened, the document data of the document is loaded from the database and cached. The main document pagination data in the document data is returned, so that the main document pagination data is displayed on the main document interface after the document is opened. The main document interface has at least one corresponding sub-document interface, and different sub-document interfaces are used to display different categories of data in the document data. Different documents correspond to different processing models, and the processing models are created through the server. The document data of the document is cached through the processing model, and the main document pagination data in the cached document data is calculated. When the target sub-document interface is triggered to be displayed, the processing model is used to retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, so that the sub-document pagination data under the target category is displayed on the target sub-document interface.

2. The method according to claim 1, characterized in that, Different document interfaces have corresponding tabs; After loading and caching the document data of the document from the database, the method further includes: The number of entries under the category corresponding to any document interface is determined from the cached document data; the number of entries is displayed in the tab corresponding to any document interface; the tab corresponding to any document interface is displayed in each document interface to trigger the display of any document interface; Wherein, any of the document interfaces is either the main document interface or the sub-document interface.

3. The method according to claim 1, characterized in that, When retrieving sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data, the method further includes: Confirm the display configuration parameters set for the master document interface so that the paginated data of the sub-documents under the target category are displayed on the target sub-document interface according to the display configuration parameters.

4. The method according to claim 1, characterized in that, The method further includes: When the system is triggered to return to the main document interface, the display configuration parameters set for the target sub-document interface are obtained, so that the paginated data of the main document is displayed on the main document interface according to the display configuration parameters.

5. The method according to claim 1, characterized in that, The sub-document pagination data is the sub-document pagination data of the first page; the method further includes: When the target sub-document interface is triggered to turn pages, the sub-document page data of the second page under the target category corresponding to the target sub-document interface is obtained from the cached document data, so that the sub-document page data of the second page is displayed on the target sub-document interface; the second page is the page pointed to by the page turning operation.

6. The method according to any one of claims 1 to 5, characterized in that, A data acquisition event is generated when the document is opened and when the target sub-document interface is triggered to be displayed; the data acquisition event is used to retrieve data from the database. The step of loading and caching the document data from the database when the document is opened includes: When a document is opened, in response to a generated data retrieval event, the document data of the document is loaded from the database and the document data is cached. When the target sub-document interface is triggered to be displayed, the process of retrieving the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data using the processing model includes: When the target sub-document interface is triggered to be displayed, the generated data acquisition event is intercepted, and the processing model is used to retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data.

7. A document processing method, characterized in that, The method includes: In response to an open operation on a document, the server is triggered to load and cache the document data from the database, and retrieve the main document pagination data from the cached document data to display in the main document interface. The main document interface has at least one corresponding sub-document interface. Different sub-document interfaces are used to display different categories of data in the document data. The main document interface and the sub-document interfaces are displayed under their respective document tabs. Different documents correspond to different processing models, which are created by the server. The document data of the document is cached through the processing model, and the main document pagination data in the cached document data is calculated. In response to a triggered operation on a document tab of the target sub-document interface, the sub-document pagination data under the target category is displayed on the target sub-document interface; the sub-document pagination data under the target category is obtained from the document data cached on the server by the processing model.

8. A document processing device, characterized in that, Applied to a server; the device includes: The first processing module is used to load and cache the document data of a document from the database when the document is opened, and return the main document pagination data from the document data, so that the main document pagination data is displayed on the main document interface after the document is opened; the main document interface has at least one corresponding sub-document interface, and different sub-document interfaces are used to display different categories of data in the document data; different documents correspond to different processing models, and the processing models are created through the server; the document data of the document is cached through the processing model, and the main document pagination data in the cached document data is calculated; The second processing module is used to retrieve the sub-document pagination data under the target category corresponding to the target sub-document interface from the cached document data when the target sub-document interface is triggered to be displayed, so that the sub-document pagination data under the target category is displayed on the target sub-document interface.

9. A document processing device, characterized in that, The device includes: The first response module is used to respond to an open operation on a document, triggering the server to load and cache the document data of the document from the database, and to obtain the main document pagination data from the document data cached by the server for display in the main document interface; the main document interface has at least one corresponding sub-document interface; different sub-document interfaces are used to display different categories of data in the document data; the main document interface and the sub-document interface are displayed under their respective document tabs; different documents correspond to different processing models, which are created by the server; the document data of the document is cached through the processing model, and the main document pagination data in the cached document data is calculated; The second response module is used to respond to a trigger operation on the document tab of the target sub-document interface and display the sub-document pagination data under the target category on the target sub-document interface; the sub-document pagination data under the target category is obtained from the document data cached on the server by the processing model.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for treating receipt

    CN106844526A

  • Website page element loading method and device, electronic device and storage medium

    CN112100541A

  • Document generation method and device, computer equipment and storage medium

    CN114462980A