Document generation method, device, computer equipment and storage medium

By displaying multiple candidate source documents in the multi-page interface, the problem of inefficient generation caused by single upstream document binding in the prior art is solved, and a more efficient and flexible document generation process is achieved.

CN114462980BActive Publication Date: 2025-02-21KINGDEE DEEKING CLOUDCOMPUTING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210241918.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2025-02-21
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In the prior art, the source selection order is fixed and a kind of upstream document bound, resulting in a single upstream document optional when generating downstream documents, resulting in low generation efficiency.

Method used

By obtaining the target document type, determining the multiple source document types associated with it, and displaying candidate source documents in the multi-page interface, allowing users to select multiple source documents to generate target documents.

Benefits of technology

It improves the efficiency of document generation, allows users to flexibly select multiple source documents, and enhances business flexibility and expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114462980B_ABST
    Figure CN114462980B_ABST
Patent Text Reader

Abstract

The present application relates to a document generation method, device, computer equipment, storage medium and computer program product, which can be applied to various business systems, such as supply chain system, enterprise management system, ERP system, human resources, finance and taxation system, production and manufacturing management system, etc. The method includes: obtaining the target document type, determining at least one source document type associated with the target document type; displaying an optional source document list, wherein a plurality of source document labels are displayed in the optional source document list; in response to a selection operation for a plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation; displaying the candidate source document in the form of at least one tab in a multi-tab interface according to the source document type to which each candidate source document belongs, and displaying the candidate source document belonging to the corresponding source document type in each tab; in response to a selection operation for at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information management technology, and in particular to a document generation method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] Enterprise business is usually continuous, and each business is related to form an overall business process. For example, in supply chain management, downstream business often depends on upstream business. For enterprise information management, the content of downstream documents needs to be generated based on upstream documents, which is usually achieved by the ERP (Enterprise Resource Planning) system providing source selection documents.

[0003] In the current implementation, since the source selection document is fixedly bound to an upstream document, the selectable upstream document is single when generating downstream documents, resulting in low efficiency in generating downstream documents. Summary of the invention

[0004] Based on this, it is necessary to provide a document generation method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of document generation in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for generating a document. The method comprises:

[0006] Acquire a target document type, and determine at least one source document type associated with the target document type;

[0007] Displaying a selectable source document list, wherein the selectable source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0008] In response to a selection operation on the plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation;

[0009] According to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0010] In response to a selection operation on at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated.

[0011] In one of the embodiments, in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type includes:

[0012] In response to a selection operation on at least one candidate source document in the multi-tab interface, determining a selected source document selected from the at least one candidate source document;

[0013] Based on the pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

[0014] In one embodiment, generating a target document belonging to the target document type according to the selected source document based on the preconfigured field mapping rule includes:

[0015] Based on a pre-configured field mapping rule, determining a mapping relationship between at least one source document field in the selected source document and a target document field in the target document;

[0016] A data value corresponding to the at least one source document field is obtained, and the data value is assigned to a corresponding target document field according to the mapping relationship to generate a target document.

[0017] In one embodiment, the method further comprises:

[0018] In response to a modification operation on a data value of a target document field in the target document, a data value of a corresponding source document field in the selected source document is updated.

[0019] In one of the embodiments, after determining, in response to the selection operation on the multiple source document tags, the candidate source document corresponding to the source document tag selected by the selection operation, further includes:

[0020] The candidate source document corresponding to the selected source document tag is passed to the tab control, and the candidate source documents of the same source document type are bound to the same tab through the tab control.

[0021] In one embodiment, the method further comprises:

[0022] In response to a selection operation on the plurality of source single tags, determining at least one selected source single tag selected from the plurality of source single tags, and storing the at least one selected source single tag as a tag set;

[0023] The stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

[0024] In a second aspect, the present application also provides a document generation device. The device comprises:

[0025] An acquisition module, used for acquiring a target document type and determining at least one source document type associated with the target document type;

[0026] A display module, used to display an optional source document list, wherein the optional source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0027] A determination module, configured to, in response to a selection operation on the plurality of source document tags, determine a candidate source document corresponding to the source document tag selected by the selection operation;

[0028] The display module is further used to display the candidate source documents in the form of at least one tab in a multi-tab interface according to the source document type to which each candidate source document belongs, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0029] A generating module is used to generate a target document belonging to the target document type in response to a selection operation on at least one candidate source document in the multi-tab interface.

[0030] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0031] Acquire a target document type, and determine at least one source document type associated with the target document type;

[0032] Displaying a selectable source document list, wherein the selectable source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0033] In response to a selection operation on the plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation;

[0034] According to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0035] In response to a selection operation on at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0037] Acquire a target document type, and determine at least one source document type associated with the target document type;

[0038] Displaying a selectable source document list, wherein the selectable source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0039] In response to a selection operation on the plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation;

[0040] According to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0041] In response to a selection operation on at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated.

[0042] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0043] Acquire a target document type, and determine at least one source document type associated with the target document type;

[0044] Displaying a selectable source document list, wherein the selectable source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0045] In response to a selection operation on the plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation;

[0046] According to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0047] In response to a selection operation on at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated.

[0048] The document generation method, apparatus, computer device, storage medium and computer program product obtain the target document type and determine at least one source document type associated with the target document type; display a selectable source document list and display multiple source document tags in the selectable source document list, each source document in each source document type corresponds to at least one source document tag; thereby, the source documents can be quickly filtered, thereby improving the efficiency of selecting documents; then, in response to the selection operation for the multiple source document tags, the candidate source document corresponding to the source document tag selected by the selection operation is determined; and according to the source document type to which each candidate source document belongs, the candidate source document is displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source document belonging to the corresponding source document type, thereby, multiple types of source documents can be displayed intuitively, and different types of source documents can be selected more flexibly and conveniently; then, in response to the selection operation for at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated, thereby, the target document can be quickly generated according to the selected candidate source document, thereby improving the efficiency of generating documents. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a process of generating a document in one embodiment;

[0050] Figure 2 A schematic diagram of a target document generation interface in one embodiment;

[0051] Figure 3A A schematic diagram of a selectable source list in one embodiment;

[0052] Figure 3B A schematic diagram of a selectable source list in another embodiment;

[0053] Figure 4 A schematic diagram of a multi-tab interface in one embodiment;

[0054] Figure 5 is a schematic diagram of a target document in one embodiment;

[0055] Fig. 6A A logical diagram of a multi-tab interface in one embodiment;

[0056] Figure 6B A logical diagram of a multi-tab interface in another embodiment;

[0057] Figure 7 A schematic diagram of the application flow of a document generation method in an embodiment;

[0058] Figure 8 A schematic diagram of a target document based on a document entry dimension in an embodiment;

[0059] Fig. 9 It is a structural block diagram of a document generating device in one embodiment;

[0060] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] In the existing method, since the source selection document is fixedly bound to an upstream document, the selectable upstream document is single when generating downstream documents. In addition, the existing source selection interface can only select the document through a simple fuzzy search method, which is inefficient.

[0063] In view of this, the present application provides a document generation method, apparatus, computer equipment, storage medium and computer program product. By acquiring different types of source documents corresponding to the target document and displaying them, multiple source documents can be selected at the same time to generate the target document without manual input, which greatly improves the efficiency of document generation. At the same time, it is no longer limited to a specific document type, but all upstream documents are displayed based on the configuration, which improves the flexibility and scalability of the business. In addition, the source document is efficiently filtered through the source document label, which is intuitive and easy to use, and the efficiency of document generation has been significantly improved.

[0064] The embodiments of the present application can be applied to various business systems to support document generation in business systems, wherein the business systems include but are not limited to enterprise management systems, ERP systems, production and manufacturing management systems, supply chain systems, personnel systems, financial systems, tax systems, and audit systems.

[0065] In one embodiment, Figure 1 As shown, a document generation method is provided, which can be applied to a terminal or a server, or the method can also be implemented by the terminal and the server interacting and cooperating. The above method includes the following steps:

[0066] Step S102: Acquire a target document type, and determine at least one source document type associated with the target document type.

[0067] Among them, the document is data information that serves as a voucher. The source document is also called the upstream document, and the target document is also called the downstream document. The source document and the converted target document have a corresponding relationship. When one document is converted to generate another document, the former document is the source document, and the generated another document is the target document. For example, the source document can be a purchase application document, and the target document can be a purchase document. In some embodiments, one source document can generate one target document, and one target document can also be generated from multiple source documents.

[0068] Specifically, the terminal can obtain the target document type by displaying the target document generation interface to the user and detecting the user's operation. For example, the terminal displays the target document generation interface to the user, and the generation interface displays multiple target document types. By detecting the user's selection operation in the generation interface, the selected target document type is determined, thereby obtaining the document type of the target document to be generated. In some embodiments, the target document generation interface is integrated in the corresponding type of business system. For example, the purchase document generation interface is generated and displayed by the purchase business system. When the user opens the purchase document generation interface in the purchase business system, the terminal can directly obtain the target document type.

[0069] For example, taking the target document type as a sales return document, in the target document generation interface, for example Figure 2 As shown, it includes basic information such as document number, document date, customer, settlement date, settlement period, part, document label, amount receivable, reason for return, document source, and other basic information, as well as commodity information such as frequency code, commodity name, available inventory, unit, quantity, unit price, etc. In the target document generation interface, a button for selecting source document is provided. When the user clicks the button, the terminal determines the source document associated with the sales return document and displays it to the user for selection.

[0070] After obtaining the target document type, the terminal determines at least one source document type associated with the target document type according to the pre-configured correspondence between the target document and the source document. For example, when the target document type is a purchase document, the terminal can determine that the associated source document type includes a purchase application document. For another example, when the target document type is a return document, the terminal can determine that the associated source document type includes an outbound document, a return application document, etc.

[0071] In some embodiments, after determining the target document type, the terminal can send the target document type to the server, so that the server can obtain the associated source document type according to the target document type and return it to the terminal; the terminal obtains the source document type by receiving the data returned by the server.

[0072] Step S104, displaying an optional source document list, wherein the optional source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag.

[0073] After acquiring at least one source document type associated with the target document type, the terminal acquires source documents belonging to the source document type. In some embodiments, the terminal may query source documents belonging to these source document types locally. Alternatively, the terminal may query the corresponding source document through the server and receive the source document belonging to the source document type returned by the server.

[0074] Documents include document fields, which are used to represent different types of data items. For example, an outbound document may include document fields such as product name, product code, inventory quantity, unit price, invoicing status, and document date. A return document may also include document fields such as return status. Since source documents of different source document types have different document fields, different source documents can be filtered based on document fields.

[0075] The terminal extracts the document fields in the source document according to the acquired source document of the source document type associated with the target document type, and generates a source document tag based on the document fields. For example, the terminal extracts the document fields in each source document and uses the document fields as the source document tag. For another example, after extracting the document fields in each source document, the terminal classifies the document fields of the same type and displays them. Each source document in each source document type corresponds to at least one source document tag.

[0076] Specifically, the terminal displays an optional source document list to the user, and the optional source document list displays optional source documents, that is, source documents belonging to the source document type associated with the target document type. To facilitate screening, the terminal displays multiple source document tags in the optional source document list, so that the user can select different source document tags to filter corresponding source documents that meet the conditions.

[0077] For example, Figure 3A and Figure 3B As shown in the figure, there are multiple source document labels displayed in the selectable source document list, such as document date of today, this week, this month, and the past three months, payment status of uncollected, partially collected, and fully collected, as well as billing status, document source, and other labels. Depending on the target type, the selectable source document type is different, and the corresponding source document is different, so the source document labels available for users to select are also different. For example, in Figure 3A Compared to Figure 3B There are two more source document labels: reconciliation status and collection status.

[0078] Step S106: In response to a selection operation on the multiple source document tags, determine a candidate source document corresponding to the source document tag selected by the selection operation.

[0079] Specifically, after the terminal displays the selectable source order list to the user, the user can select one or more source order tags to filter the source documents. The terminal detects the user's selection operation in the selectable source order list. When it is detected that the user has selected multiple source order tags, the terminal responds to the user's selection operation on the multiple source order tags, obtains the source order tag selected by the selection operation, and determines the source document that meets the selected source order tag as the filtering condition as the candidate source document corresponding to the selected source order tag.

[0080] Step S108, according to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type.

[0081] Specifically, after the terminal determines the candidate source documents, it displays each candidate source document through a multi-tab interface according to the source document type to which each candidate source document belongs. The multi-tab interface displays different types of candidate source documents in the form of at least one tab, one tab corresponds to one source document type, and each tab displays candidate source documents belonging to the source document type corresponding to the tab.

[0082] In the multi-tab interface, each tab can be displayed in a folded manner, for example, Figure 4 As shown, the multi-tab interface includes a tab corresponding to the sales delivery order and an interface corresponding to the sales return application form, wherein the tab corresponding to the sales delivery order is folded, and the current display is the tab corresponding to the sales return application form. Of course, it is not limited to this, for example, each tab in the multi-tab interface can also be displayed up and down, side by side, etc. The multi-tab interface provided in the embodiment of the present application can adapt to any upstream and downstream documents, and the configuration is more flexible.

[0083] Step S110 , in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type.

[0084] Specifically, after the terminal displays different types of candidate source documents to the user through a multi-page tab interface, the terminal detects the user's selection operation on the candidate source document; when the terminal detects that the user has selected at least one candidate source document, in response to the user's selection operation on the at least one candidate source document, the selected candidate source document is determined, and a target document is generated based on the selected candidate source document. For example, the generated target document may be as follows: Figure 5 As shown, in Figure 2 Based on the target document generation interface shown in the figure, three new pieces of information are added to the product information, which are derived from the sales delivery document and the sales return application document.

[0085] In the above document generation method, by acquiring the target document type, at least one source document type associated with the target document type is determined; by displaying an optional source document list, and displaying multiple source document tags in the optional source document list, each source document in each source document type corresponds to at least one source document tag; thereby, source documents can be quickly filtered, thereby improving the efficiency of selecting documents, and at the same time, source documents are filtered by the selected source document tag, thereby improving the accuracy of generated documents; then, in response to a selection operation for multiple source document tags, a candidate source document corresponding to the source document tag selected by the selection operation is determined; and according to each candidate source document tag, a candidate source document corresponding to the source document tag selected by the selection operation is selected. The source document types to which the documents belong respectively display candidate source documents in the form of at least one tab in the multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays candidate source documents belonging to the corresponding source document type, thereby making it possible to intuitively display multiple types of source documents and to more flexibly and conveniently select different types of source documents; and then in response to a selection operation for at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated, thereby making it possible to quickly generate a target document based on the selected candidate source document, thereby improving the efficiency of generating documents.

[0086] In some embodiments, in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type includes:

[0087] Step S202: in response to a selection operation on at least one candidate source document in the multi-tab interface, determining a selected source document selected from the at least one candidate source document.

[0088] Step S204: Based on the pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

[0089] Among them, the field mapping rule is used to map the document field in the source document to the corresponding document field in the target document. For example, the document field "Inventory Quantity" in the outbound document has a mapping relationship with the document field "Return Quantity" in the return document. According to the field mapping rule, the relationship between the specific value under the document field "Inventory Quantity" and the specific value under the document field "Return Quantity" can be established.

[0090] Specifically, after the terminal displays different types of candidate source documents to the user through a multi-tab interface, the terminal detects the user's selection operation on the candidate source document; when the terminal detects that the user selects at least one candidate source document, in response to the user's selection operation on the at least one candidate source document, the terminal determines the source document selected from the at least one candidate source document as the selected source document. Based on the pre-configured field mapping rule, the terminal generates a target document belonging to the target document type according to the mapping relationship between each document field in the selected source document and each document field in the target document.

[0091] In the above embodiment, the target document is directly generated according to the selected source document through the pre-configured field mapping rules, without the need for manual input of numerical values, thereby improving the efficiency of generating documents.

[0092] In some embodiments, after determining, in response to the selection operation on the multiple source document tags, the candidate source document corresponding to the source document tag selected by the selection operation, further includes: passing the candidate source document corresponding to the selected source document tag to the tab control, and binding the candidate source documents belonging to the same source document type to the same tab through the tab control.

[0093] Specifically, the terminal passes the candidate source document corresponding to the selected source document tag to the tab control defined in the multi-tab interface. Through the tab control, multiple candidate source documents belonging to the same source document type are respectively bound to the same tab, and candidate source documents of different source document types are bound to different tabs, thereby realizing that each tab displays candidate source documents of one source document type.

[0094] For example, Fig. 6A As shown, a tab control is defined in the multi-tab interface, which is used to bind source documents of each source document type to the tab control, so that source documents of multiple source document types are displayed in one interface in the form of tabs. Figure 6B As shown, the multi-page tab interface may include a search and filter toolbar and a paging toolbar; the search and filter toolbar may be customized according to each source document. For example, the search and filter toolbar may include: Figure 4 The paging toolbar is used to paginate tabs. When the user clicks the paging number in the paging toolbar, the multi-tab interface can display the tab corresponding to the paging number, thereby displaying source documents of different source document types.

[0095] In the above embodiment, candidate source documents of different source document types are flexibly displayed through a multi-tab interface for users to choose from, which is more intuitive and easy to use, and the usage efficiency is improved. At the same time, the tab itself can also be flexibly configured to adapt to any upstream and downstream documents, thereby improving the efficiency of generating documents.

[0096] In some embodiments, generating a target document belonging to the target document type according to the selected source document based on the preconfigured field mapping rule includes:

[0097] Step S302: Determine a mapping relationship between at least one source document field in the selected source document and a target document field in the target document based on a pre-configured field mapping rule.

[0098] Step S304: acquiring a data value corresponding to the at least one source document field, and assigning the data value to a corresponding target document field according to the mapping relationship to generate a target document.

[0099] Specifically, the terminal determines the mapping relationship between the source document field in the selected source document and the target document field in the target document based on the pre-configured field mapping rule, so as to determine which document fields in the selected source document are associated with the target document field. After determining the mapping relationship between the source document field and the target document field, the terminal obtains the data value corresponding to the source document field, and assigns the data value to the corresponding target document field according to the mapping relationship. Thus, the target document can be generated by assigning the data value corresponding to the target document field in the target document.

[0100] In the above embodiment, the target document is directly generated according to the selected source document through the pre-configured field mapping rules, without the need for manual input of numerical values, thereby improving the efficiency of generating documents.

[0101] Based on the pre-configured field mapping rules, not only can the target document be generated according to the source document conversion, but also when the data value of the target document field of the target document changes, the terminal can perform a reverse write operation on the source document according to the field mapping rules. The reverse write operation refers to assigning the data value in the source document according to the target document.

[0102] To this end, in some embodiments, the above method further includes: in response to a modification operation on a data value of a target document field in the target document, updating a data value of a corresponding source document field in the selected source document.

[0103] Specifically, the terminal detects the user's operation on the target document. When it detects the user's modification operation on the data value of the target document field in the target document, it determines the source document field of the selected source document corresponding to the modified target document field according to the pre-configured field mapping rules, and updates the data value of the source document field, thereby completing the data rewrite operation.

[0104] In the above embodiment, the source document is updated accordingly by detecting the user's operation on the target document, thereby achieving data synchronization between the source document and the target document, without the need for manual modification of the source document.

[0105] In order to improve the usability and speed of the optional source document list, when the user selects multiple source document labels, the terminal can also merge and store the selected multiple source document labels together as the user's personalized customization plan; thus, the next time the target document is generated, the user can directly select the previously stored personalized customization plan in the optional source document list interface without having to select the source document labels one by one again.

[0106] To this end, in some embodiments, the above method further includes the following steps:

[0107] Step S402: In response to a selection operation on the plurality of source single tags, determining at least one selected source single tag selected from the plurality of source single tags, and storing the at least one selected source single tag as a tag set.

[0108] Step S404, displaying the stored tag set in the optional source document list, wherein when the tag set is triggered, determining the candidate source document corresponding to the selected source document tag according to the selected source document tag in the tag set.

[0109] Specifically, in response to the user's selection operation on the multiple source order labels, the terminal determines at least one selected source order label from the multiple source order labels as the selected source order label, and stores the at least one source order label as a label set, and displays the stored label set in the optional source order list. In some embodiments, the terminal can display the label set in real time after the user selects the label set, or display it in the optional source order list when the target document is generated next time.

[0110] Exemplarily, after the user selects source document labels A, B, and C, the terminal stores these source document labels as a label set and displays them in the optional source document list, for example, indicating the label set with the label name of "Scheme 1". As a result, the user can directly select the label set of "Scheme 1" in the optional source document list when generating a target document next time, and the terminal can directly determine that the selected source document labels are A, B, and C, and then directly determine the source document labels that meet the screening condition of source document labels A, B, and C.

[0111] In the above embodiment, by saving the source document label selected by the user, a personalized customization solution can be provided to the user, which is more intuitive and easy to use, thereby improving the efficiency of generating documents.

[0112] In a specific example, the system logic of the document generation method provided in the embodiment of the present application can be Figure 7 As shown. When the user triggers the source document selection button on the target document generation interface, the target document generation interface requests the configurator configured on the server to obtain the associated source document information, which includes the field conversion rules between the source document and the target document. The server obtains the source document type associated with the target document through the configurator, and obtains the source documents belonging to these source document types, obtains the source document list, and obtains the source document label corresponding to each source document as a filtering condition, and returns it to the terminal. The terminal registers the received source document to the multi-tab interface container through the multi-tab interface, constructs standardized sub-page display parameters, opens the sub-tab source document list, and sets the sub-page differentiated display in the source document sub-interface, so as to realize different source document types displaying different data contents. According to the user's selection operation on the source document label, the terminal filters and selects the source document, and returns the selected source document content, such as name, field, data value, etc. In some embodiments, the terminal establishes a conversion relationship between the source document and the target document by calling a document conversion engine pre-configured with document conversion rules, and reverses the data of the source document. Afterwards, the reversed source document content is returned to the target document generation interface, and the target document with data rendering is displayed at the same time, as shown in FIG. Figure 5 The interface shown.

[0113] Assuming that the source documents associated with the target document TBill include source document SBill01 and source document SBill02, the user, in the target document generation interface, for example, clicks the "Select Source Document" button to instruct the terminal to execute and provide source documents for the user to select. The terminal detects and obtains the document type of the target document TBill, and obtains the source documents SBill01 and SBill02 associated with the target document TBill. The terminal obtains information about source documents SBill01 and SBill02, including the document names, document fields, and data values ​​of source documents SBill01 and SBill02, respectively, and the field mapping rules between source documents SBill01 and SBill02 and target document TBill. The terminal displays a list of optional source documents to the user, and the optional source document list provides the user with a quick and convenient way to filter source documents in the form of source document tags. Assuming that the source documents obtained by the user through the source document label screening are source document SBill01 and source document SBill02, the terminal displays the selected source document in multiple tabs through the multi-tab interface. For example, after the user clicks the "Generate Document" button, the terminal converts between source document SBill01 and target document TBill, and between source document SBill02 and target document TBill, thereby generating target document TBill based on source document SBill01 and source document SBill02.

[0114] In some embodiments, the conversion between the source document SBill01 and the source document SBill02 and the target document TBill is based on the document entry dimension, and the target document TBill finally presented to the user combines the contents of the two source documents. Figure 8 As shown, the source document SBill01 records the quantity 2 of commodity SP01_1 and the quantity 2 of commodity SP01_2 through two entries, and the source document SBill02 records the quantity 3 of commodity SP02_1 and the quantity 4 of commodity SP02_2 through two entries. One entry corresponds to one commodity. Therefore, in the generated target document TBill, the target document TBill displays the quantity 2 of commodity SP01_1, the quantity 2 of commodity SP01_2, the quantity 3 of commodity SP02_1, and the quantity 4 of commodity SP02_2 through four entries.

[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0116] Based on the same inventive concept, the embodiment of the present application also provides a document generation device for implementing the document generation method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more document generation device embodiments provided below can refer to the limitations on the document generation method above, and will not be repeated here.

[0117] In one embodiment, Fig. 9 As shown, a document generation device 900 is provided, comprising: an acquisition module 901, a display module 902, a determination module 903 and a generation module 904, wherein:

[0118] An acquisition module 901 is used to acquire a target document type and determine at least one source document type associated with the target document type;

[0119] A display module 902 is used to display an optional source document list, wherein the optional source document list displays multiple source document tags, wherein each source document in each source document type corresponds to at least one source document tag;

[0120] A determination module 903, configured to determine, in response to a selection operation on the plurality of source document tags, a candidate source document corresponding to the source document tag selected by the selection operation;

[0121] The display module 902 is further configured to display the candidate source documents in the form of at least one tab in a multi-tab interface according to the source document type to which each candidate source document belongs, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type;

[0122] The generating module 904 is used to generate a target document belonging to the target document type in response to a selection operation on at least one candidate source document in the multi-tab interface.

[0123] In one of the embodiments, the above-mentioned generation module is also used to determine a selected source document selected from at least one candidate source document in response to a selection operation on at least one candidate source document in the multi-tab interface; based on pre-configured field mapping rules, generate a target document belonging to the target document type according to the selected source document.

[0124] In one of the embodiments, the above-mentioned generation module is also used to determine the mapping relationship between at least one source document field in the selected source document and the target document field in the target document based on pre-configured field mapping rules; obtain the data value corresponding to the at least one source document field, and assign the data value to the corresponding target document field according to the mapping relationship to generate the target document.

[0125] In one of the embodiments, the apparatus further comprises an updating module for updating the data value of the corresponding source document field in the selected source document in response to a modification operation on the data value of the target document field in the target document.

[0126] In one of the embodiments, the above-mentioned device also includes a binding module, which is used to transfer the candidate source document corresponding to the selected source document tag to the tab control, and bind the candidate source documents belonging to the same source document type to the same tab through the tab control.

[0127] In one of the embodiments, the above-mentioned device also includes a customization module, which is used to determine at least one selected source order tag selected from the multiple source order tags in response to a selection operation on the multiple source order tags, and store the at least one selected source order tag as a tag set; the stored tag set is displayed in the optional source order list, and the tag set is used to determine the candidate source document corresponding to the selected source order tag according to the selected source order tag in the tag set when being triggered.

[0128] Each module in the above-mentioned document generation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0129] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a document generation method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0130] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0131] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a target document type and determining at least one source document type associated with the target document type; displaying an optional source document list, wherein a plurality of source document tags are displayed in the optional source document list, wherein each source document in each source document type corresponds to at least one source document tag; in response to a selection operation on the plurality of source document tags, determining a candidate source document corresponding to the source document tag selected by the selection operation; displaying the candidate source documents in the form of at least one tab in a multi-tab interface according to the source document type to which each of the candidate source documents belongs, wherein one tab corresponds to one source document type, and each tab displays candidate source documents belonging to the corresponding source document type; in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type.

[0132] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to a selection operation on at least one candidate source document in the multi-tab interface, a selected source document selected from the at least one candidate source document is determined; based on pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

[0133] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on a preconfigured field mapping rule, determining a mapping relationship between at least one source document field in the selected source document and a target document field in the target document; obtaining a data value corresponding to the at least one source document field, and assigning the data value to the corresponding target document field according to the mapping relationship to generate a target document.

[0134] In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to a modification operation on a data value of a target document field in the target document, the data value of a corresponding source document field in the selected source document is updated.

[0135] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the candidate source document corresponding to the selected source document tag is passed to the tab control, and the candidate source documents belonging to the same source document type are bound to the same tab through the tab control.

[0136] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to a selection operation on the multiple source order tags, at least one selected source order tag selected from the multiple source order tags is determined, and the at least one selected source order tag is stored as a tag set; the stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

[0137] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a target document type and determining at least one source document type associated with the target document type; displaying an optional source document list, wherein a plurality of source document tags are displayed in the optional source document list, wherein each source document in each source document type corresponds to at least one source document tag; in response to a selection operation on the plurality of source document tags, determining a candidate source document corresponding to the source document tag selected by the selection operation; displaying the candidate source documents in the form of at least one tab in a multi-tab interface according to the source document type to which each of the candidate source documents belongs, wherein one tab corresponds to one source document type, and each tab displays candidate source documents belonging to the corresponding source document type; in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type.

[0138] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a selection operation on at least one candidate source document in the multi-tab interface, a selected source document selected from the at least one candidate source document is determined; based on pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

[0139] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on a preconfigured field mapping rule, determining a mapping relationship between at least one source document field in the selected source document and a target document field in the target document; obtaining a data value corresponding to the at least one source document field, and assigning the data value to the corresponding target document field according to the mapping relationship to generate a target document.

[0140] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a modification operation on a data value of a target document field in the target document, updating a data value of a corresponding source document field in the selected source document.

[0141] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the candidate source document corresponding to the selected source document tag is passed to the tab control, and the candidate source documents belonging to the same source document type are bound to the same tab through the tab control.

[0142] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a selection operation on the multiple source order tags, at least one selected source order tag selected from the multiple source order tags is determined, and the at least one selected source order tag is stored as a tag set; the stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

[0143] In one embodiment, a computer program product is provided, comprising a computer program, which implements the following steps when executed by a processor: acquiring a target document type and determining at least one source document type associated with the target document type; displaying an optional source document list, wherein a plurality of source document tags are displayed in the optional source document list, wherein each source document in each source document type corresponds to at least one source document tag; in response to a selection operation on the plurality of source document tags, determining a candidate source document corresponding to the source document tag selected by the selection operation; displaying the candidate source documents in the form of at least one tab in a multi-tab interface according to the source document type to which each of the candidate source documents belongs, wherein one tab corresponds to one source document type, and each tab displays candidate source documents belonging to the corresponding source document type; in response to a selection operation on at least one candidate source document in the multi-tab interface, generating a target document belonging to the target document type.

[0144] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a selection operation on at least one candidate source document in the multi-tab interface, a selected source document selected from the at least one candidate source document is determined; based on pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on a preconfigured field mapping rule, determining a mapping relationship between at least one source document field in the selected source document and a target document field in the target document; obtaining a data value corresponding to the at least one source document field, and assigning the data value to the corresponding target document field according to the mapping relationship to generate a target document.

[0146] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a modification operation on a data value of a target document field in the target document, updating a data value of a corresponding source document field in the selected source document.

[0147] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the candidate source document corresponding to the selected source document tag is passed to the tab control, and the candidate source documents belonging to the same source document type are bound to the same tab through the tab control.

[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a selection operation on the multiple source order tags, at least one selected source order tag selected from the multiple source order tags is determined, and the at least one selected source order tag is stored as a tag set; the stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

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

[0151] The above-described 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 present application. 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 present application shall be subject to the attached claims.

Claims

1. A document generation method, characterized in that: The method comprises: Acquire a target document type, and determine at least one source document type associated with the target document type; Acquire a source document belonging to the source document type, extract document fields from the source document, and use the extracted document fields as source document tags; Displaying a selectable source document list, wherein the selectable source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag; In response to a selection operation on the plurality of source document labels, determining a candidate source document corresponding to the source document label selected by the selection operation; The candidate source document corresponding to the selected source document tag is transferred to the tab control, and the candidate source documents belonging to the same source document type are bound to the same tab through the tab control; According to the source document type to which each of the candidate source documents belongs, the candidate source documents are displayed in the form of at least one tab in a multi-tab interface, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type; In response to a selection operation on at least one candidate source document in the multi-tab interface, a target document belonging to the target document type is generated.

2. The method according to claim 1, characterized in that The generating a target document belonging to the target document type in response to a selection operation on at least one candidate source document in the multi-tab interface includes: In response to a selection operation on at least one candidate source document in the multi-tab interface, determining a selected source document selected from the at least one candidate source document; Based on the pre-configured field mapping rules, a target document belonging to the target document type is generated according to the selected source document.

3. The method according to claim 2, characterized in that The generating of a target document belonging to the target document type according to the selected source document based on the pre-configured field mapping rule includes: Based on a pre-configured field mapping rule, determining a mapping relationship between at least one source document field in the selected source document and a target document field in the target document; A data value corresponding to the at least one source document field is obtained, and the data value is assigned to a corresponding target document field according to the mapping relationship to generate a target document.

4. The method according to claim 3, characterized in that The method further comprises: In response to a modification operation on a data value of a target document field in the target document, a data value of a corresponding source document field in the selected source document is updated.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a selection operation on the plurality of source single tags, determining at least one selected source single tag selected from the plurality of source single tags, and storing the at least one selected source single tag as a tag set; The stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

6. A document generating device, characterized in that: The device comprises: an acquisition module, configured to acquire a target document type, determine at least one source document type associated with the target document type, acquire a source document belonging to the source document type, extract document fields from the source document, and use the extracted document fields as source document tags; A display module, used to display an optional source document list, wherein the optional source document list displays a plurality of source document tags, wherein each source document in each source document type corresponds to at least one source document tag; A determination module, configured to, in response to a selection operation on the plurality of source document tags, determine a candidate source document corresponding to the source document tag selected by the selection operation; The display module is further used to transfer the candidate source document corresponding to the selected source document tag to the tab control, and bind the candidate source documents belonging to the same source document type to the same tab through the tab control, and display the candidate source documents in the form of at least one tab in the multi-tab interface according to the source document type to which each candidate source document belongs, wherein one tab corresponds to one source document type, and each tab displays the candidate source documents belonging to the corresponding source document type; A generating module is used to generate a target document belonging to the target document type in response to a selection operation on at least one candidate source document in the multi-tab interface.

7. The device according to claim 6, characterized in that Also included is a customization module for determining at least one selected source single tag selected from the plurality of source single tags in response to a selection operation on the plurality of source single tags, and storing the at least one selected source single tag as a tag set; The stored tag set is displayed in the optional source order list, and when the tag set is triggered, a candidate source document corresponding to the selected source order tag in the tag set is determined.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and system for processing document

    CN101452481A

  • Service document conversion method and device, storage medium and computer equipment

    CN110704519A

  • Business processing module, business processing system and business processing method

    CN112598351A