CN108897727B - Contract filing method and device, computer equipment and storage medium - Google Patents

Contract filing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108897727B
CN108897727B CN201810501579.8A CN201810501579A CN108897727B CN 108897727 B CN108897727 B CN 108897727B CN 201810501579 A CN201810501579 A CN 201810501579A CN 108897727 B CN108897727 B CN 108897727B
Authority
CN
China
Prior art keywords
contract
page
key
document
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810501579.8A
Other languages
Chinese (zh)
Other versions
CN108897727A (en
Inventor
刘阳
冯心
梁瑾
张瑞光
谢保林
吴思楠
黄心官
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810501579.8A priority Critical patent/CN108897727B/en
Priority to PCT/CN2018/094886 priority patent/WO2019223073A1/en
Publication of CN108897727A publication Critical patent/CN108897727A/en
Application granted granted Critical
Publication of CN108897727B publication Critical patent/CN108897727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a contract filing method, a contract filing device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page; acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page; and when the first contract page number is matched with the second contract page number, replacing the key page with the contract scanning page to generate an electronic contract document. The method and the device scan the key pages of the complete contract to form a contract scanning piece, and then replace the contract scanning piece with the key pages in the contract template to form the electronic contract document record. When the method is used for recording contracts, workers only need to scan key pages of the contracts and do not need to scan all the contracts, so that the workload of the workers is reduced, and the speed of batch contract recording is increased.

Description

Contract filing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for filing a contract, a computer device, and a storage medium.
Background
The contract is composed of a general fixed page and a key page; the fixed page is a fixed clause, which does not need to fill information from both parties or multiple parties of the transaction, and the key page is a page containing specific transaction information such as price, quantity, trader data and the like which need to fill in a contract. When a trading party signs a contract and scans the contract into an electronic contract document for filing, all contract pages are required to be scanned once to synthesize an electronic contract document, and because a contract has a plurality of pages, each page is required to be scanned once when the electronic contract document is made, so that a large workload is generated, and the contract with a plurality of pages is easy to make mistakes.
Therefore, it is an urgent need to solve the problem of providing a new method for filing contracts.
Disclosure of Invention
The application mainly aims to provide a contract filing method, a contract filing device, computer equipment and a storage medium, wherein the contract filing method, the contract filing device, the computer equipment and the storage medium can be used for generating an electronic contract document only by scanning key pages and then putting the key pages into a preset system.
In order to achieve the above object, the present application provides a contract filing method, including:
receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page;
acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page;
and when the first contract page number is matched with the second contract page number, replacing the key page with the contract scanning page to generate an electronic contract document.
Further, the key page includes a preset mark, and when the first contract page number matches the second contract page number, the key page is replaced with the contract scan page, and the step of generating the electronic contract document includes:
searching the preset mark;
analyzing the preset mark to generate the second contract page number;
matching the first contract page number with the second contract page number;
if the matching is successful, replacing the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number;
an electronic contract document is generated.
Further, the step of generating the electronic contract document is followed by:
scanning the electronic contract document and judging whether a preset mark exists or not;
if so, sending a preset first prompt signal.
Further, the step of generating the electronic contract document includes:
sending the replaced contract template to a background;
and after receiving the confirmation instruction, generating an electronic contract document.
Further, the step of generating the electronic contract document is followed by:
acquiring the number of key pages in the contract template;
judging whether the page number of the contract scanning pages is consistent with the number of the key pages;
if not, sending a preset second prompt signal.
Further, the contract template is a text document, and the method for setting the key page template comprises the following steps:
reading the contract template, and identifying a space and/or an enter label in the text;
and when the number of the spaces and/or the carriage return labels continuously exceeds a certain number, setting the pages where the spaces and/or the carriage return labels are located as the key pages.
Further, the step of generating the electronic contract document is followed by:
and naming the electronic contract document by using the contract template name and the generation date of the electronic contract document.
The present application further provides a contract filing apparatus, including:
the receiving module is used for receiving the uploaded contract scanning page, and the contract scanning page comprises a first contract page number corresponding to the contract scanning page;
the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page;
and the generating module is used for replacing the key page with the contract scanning page to generate an electronic contract document when the first contract page number is matched with the second contract page number.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the contract filing method, the contract filing device, the computer equipment and the storage medium, the key pages of the complete contract are scanned to form the contract scanning piece, then the contract scanning piece and the key pages in the original contract template corresponding to the contract are replaced, so that the electronic contract document of the contract can be formed, and the contract filing is completed. When the method is used for recording contracts, workers only need to scan key pages of the contracts without scanning all the contracts, so that the workload of the workers is reduced, especially when a large number of contracts are recorded, the workload of the workers is reduced, and the speed of batch contract recording is increased.
Drawings
FIG. 1 is a schematic flow chart illustrating a contract filing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating the step S3 of the contract filing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating the step S35 of the contract filing method according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for setting a key page in the contract filing method according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a contract filing apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram illustrating the structure of a generation module of a contract filing apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram schematically illustrating a structure of a generation unit of a contract filing apparatus according to an embodiment of the present application;
FIG. 8 is a block diagram of a contract filing apparatus according to an embodiment of the present application;
FIG. 9 is a block diagram of a contract filing apparatus according to an embodiment of the present application;
fig. 10 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
Referring to fig. 1, an embodiment of the present application provides a contract filing method, including the steps of:
s1, receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page;
s2, acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page;
and S3, replacing the key page with the contract scanning page when the first contract page number is matched with the second contract page number, and generating the electronic contract document.
As mentioned in step S1, after the transaction party completes the contract, the transaction content will be signed, sealed and agreed on the key page of the contract. The staff member scans the contract page with the signature or seal or appointed transaction content to form a contract scanning page. The contract scan sheet includes a document file stored in a picture form or a document form. The files in the picture form comprise a JEPG format, a BMP format, a TIF format and the like. The file in the form of a document includes a pdf format. Then the staff member names the image data respectively and places the image data in the designated database of the system. And the system accesses the database and acquires the contract scanning page in the database. In a specific embodiment, the database refers to a storage space corresponding to a designated folder in the system, and the staff places the contract scanning pages in the database, that is, the contract scanning pages are placed in the folder. When the system receives the contract scanning page in the database, the system accesses the address of the folder to obtain the contract scanning page in the folder. When the system acquires the contract scanning pages in the folder, whether the contract scanning pages are the contract scanning pages is determined according to the file suffixes in the database. The system reads the suffix of each file in the folder, determines the file to be a contract scanning page if the suffix is in a preset contract scanning page format, and receives the uploaded contract scanning page. If the suffixes dwg, exe and the like do not belong to the preset contract scanning page format, determining that the pages are not contract scanning pages and not receiving the upload. The first contract page number is the page number on the contract scanning page, and is used for marking the contract scanning page, so that a plurality of scanning pages can be conveniently distinguished.
As described above in step S2, the contract template is uploaded to the system by the system administrator after the contract is formulated for the transaction. The contract template has related key pages and fixed pages. When making a contract template, a system administrator makes the key pages and the fixed pages respectively and then combines the key pages and the fixed pages together according to the order of contracts. The fixed page is fixed and unchangeable, is manufactured in an encrypted form, and does not allow others to change. Since the fixed page and the key page are in different formats, the key page can be identified by identifying whether the pages in the contract template are encrypted. The second contract page number is the number of pages set on the key page for distinguishing a plurality of key pages.
As described in step S3, after the system reads the first contract page number of the uploaded contract scan page, it searches for the second contract page number of all the key pages in the contract template, the read first contract page number matches with the second contract page number, if matching succeeds, the contract scan page corresponding to the first contract page number is replaced with the key page corresponding to the second contract page number, i.e. the key page in the contract template is deleted, and the contract scan page corresponding to the key page is added at the position of the original key page, so that the whole contract template contains all the clause information and transaction information of the contract, and has all the elements of the contract, and the new contract template is merged to generate the electronic contract document, and put into the system for storage.
Referring to fig. 2, further, the key page includes a preset mark, and when the first contract page number matches the second contract page number, the key page is replaced with the contract scan page, and the step of generating the electronic contract document includes:
s31, searching the preset mark;
s32, analyzing the preset mark to generate the second contract page number;
s33, matching the first contract page number with the second contract page number;
s34, if the matching is successful, replacing the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number;
and S35, generating the electronic contract document.
In this embodiment, when the system administrator makes the contract template, the system administrator distinguishes the key pages and the fixed pages in the contract template, and marks the key pages. For example, if the page numbers of the key page template are one, two, and seven, the page numbers are set to be one, two, and seven as the marks of the key page. When the system finds the marks of the page sequence numbers of 'one', 'two' and 'seven', the system determines that the page is the key page. In another specific embodiment of the scheme, a system administrator adds different watermark marks into the key pages, the corresponding system searches for the watermark marks in the contract template, and the pages with the watermark marks are confirmed as the key pages. And then the mark is analyzed according to a preset rule to obtain a second contract page number. And after reading the second contract page numbers of the key pages, the system respectively matches the at least one second contract page number with the at least one first contract page number. For example, the second contract page number of the first key page is analyzed to be 1, and the second contract page number of the second key page is analyzed to be 2. The system reads the contract template, and when the first contract page number of the first contract scanned page is 1 and the second contract page number of the second contract scanned page is 2, matches the first contract scanned page with the first key page and matches the second contract scanned page with the second key page. And after the matching is successful, deleting the key page from the contract template, and simultaneously inserting the contract scanning page matched with the key page into the position of the key page to realize that the contract scanning page replaces the key page. An electronic contract document is formed.
In another specific embodiment, the system finds three preset marks, generates three second contract pages 1, 2, and 7 respectively after the three preset marks are analyzed, and obtains three first contract pages 1, 2, and 3 respectively of the three contract scan pages. The specific matching method comprises the following steps: matching according to the ranking sequence of the page numbers, and matching the key page with the second contract page number of 1 with the contract scanning page with the first contract page number of 1; matching the key page with the second contract page number of 2 with the contract scanning page with the first contract page number of 2; the key pages with the second contract page number of 7 are matched with the contract scanned pages with the first contract page number of 3.
Further, the step of generating the electronic contract document includes, after the step of generating the electronic contract document:
s4, scanning the electronic contract document, and judging whether a preset mark exists;
and S5, if yes, sending out a preset first prompt signal.
In this embodiment, after the electronic contract document is formed, the system scans the electronic contract document to see whether the electronic contract document has the preset mark of the key page. Because all the key pages are pages needing to be filled with transaction information, if the key pages are still in the electronic contract document, the contract is incomplete. Whether the electronic contract document has the key pages is judged by searching whether the electronic contract document has the preset marks or not, so that whether the electronic contract document is complete or not is judged. If the preset mark is found in the electronic contract document after scanning, the fact that the key page is not replaced indicates that the electronic contract document is incomplete, and therefore the system sends out a first prompt signal to remind workers that the electronic contract document is wrong or incomplete and needs to be restocked. The first prompt signal includes a dialog box generated by the system to prompt the staff, or controls the LED lamp to flash to remind the staff, or controls the buzzer to emit corresponding sound to remind the staff.
Referring to fig. 3, further, the step of generating the electronic contract document includes:
s351, sending the replaced contract template to a background;
and S352, generating the electronic contract document after receiving the confirmation instruction.
As described in step S351, after the key page in the contract template is replaced with the contract scanning page, the replaced contract template is sent to the interface used by the staff for display, and the interface used by the staff, i.e. the background, enables the staff to browse and confirm the electronic contract to be generated.
As described in step S352, after the confirmation, the staff sends a confirmation instruction to the system through the background, and after the system receives the confirmation instruction sent from the background, the contract templates into which the image data is inserted and the key page template is deleted are integrated into a new document, so as to generate an electronic contract document.
Further, the step of generating the electronic contract document described above includes, after:
s6, acquiring the number of key pages in the contract template;
s7, judging whether the page number of the contract scanning page is consistent with the number of the key pages;
and S8, if not, sending a preset second prompt signal.
In this embodiment, all the key pages in the contract template must be replaced, and the information in the whole contract is complete. If the number of the contract scanning pages is inconsistent with that of the key pages, the key pages are not replaced, and the corresponding generated electronic contract document is incomplete. The number of key pages in the contract template is obtained by obtaining the number of marks in the contract template, and the number of marks is the same as the number of key pages because each key page has one mark. And judging whether the number of the contract scanning pages is consistent with that of the key pages, namely comparing whether the numerical values of the two numbers are consistent. If the two values are not consistent, the corresponding key page in the contract is not replaced or the replacement is wrong, so that the generated electronic contract document is incomplete or wrong. Thus, a second cue signal is issued. The second prompt signal may be the same as the first prompt signal, and includes a dialog box generated by the system to prompt the worker, or controls the LED lamp to flash to prompt the worker, or controls the buzzer to emit corresponding sound to prompt the worker.
Referring to fig. 4, further, the contract template is a text document, and the method for setting the key pages includes:
s201, reading the contract template, and identifying a space and/or an enter label in a text;
s202, when the number of the spaces and/or the carriage return labels continuously exceeds a certain number, setting the pages where the spaces and/or the carriage return labels are located as the key pages.
As described in step S201, the contract template is in a text format, where all positions where information needs to be filled in are blank pages, and all positions where information needs to be filled in are key pages, so that the key pages are determined by identifying the blank pages in the contract template. When the space command or the enter command is input, a space label or an enter label is left to generate a blank position, or when the space command is input, an underline instruction is added, and a corresponding text has a blank position. The system reads the contract template, browses all pages once, recognizes that the text is a space label, a carriage return label or an underline of the space label, and judges that the position is blank.
As described in step S202, after the system identifies the blank position in the text, it further determines whether the blank position is a position for filling transaction information, and the position for filling transaction information needs to have a certain space and cannot be too small, so when the number of the blank labels and/or the carriage return labels continuously exceeds a certain number, for example, 20 blank labels or 3 carriage return labels continuously exist, it is determined that the blank position is to fill some transaction information, and the page where the blank position is located is the key page.
Further, the step of generating the electronic contract document includes, after:
and S9, naming the electronic contract document by the contract template name and the generation date of the electronic contract document.
As described in step S9 above, the contract template name is named after the system administrator makes the contract template, and is typically named according to the type or trade name of the contract, such as "product a trade contract". The date of generation of the electronic contract document is the date of acquisition of the system access network, and the date is based on the date of the location of the system. The system acquires the contract template name and the generation date of the electronic contract document, and combines the contents of the contract template name and the generation date of the electronic contract document into: the product A transaction contract 20180326 is named by the content as the electronic contract document, and the contract content and the filing date of the electronic contract document are displayed, so that the management of all contracts by workers is facilitated.
In summary, the contract filing method of the present application scans the key pages of the complete contract to form a contract scanning component, and then replaces the contract scanning component with the key pages in the original contract template corresponding to the contract, so as to form the electronic contract document of the contract and complete the contract filing. When the method is used for recording contracts, workers only need to scan key pages of the contracts without scanning all the contracts, so that the workload of the workers is reduced, especially when a large number of contracts are recorded, the workload of the workers is reduced, and the speed of batch contract recording is increased.
Referring to fig. 5, the present application also proposes a contract filing apparatus, comprising:
the receiving module 1 is configured to receive an uploaded contract scanning page, where the contract scanning page includes a first contract page number corresponding to the contract scanning page;
the first obtaining module 2 is configured to obtain a preset contract template, where the contract template includes at least one key page, and the key page includes a second contract page number corresponding to the key page;
and the generating module 3 is configured to replace the key page with the contract scan page to generate an electronic contract document when the first contract page number matches the second contract page number.
In this embodiment, after the transaction party finishes signing the contract, the transaction content is signed, sealed and agreed on the key page of the contract. The staff member scans the contract page with the signature or seal or appointed transaction content to form a contract scanning page. The contract scan sheet includes a document file stored in a picture form or a document form. The files in the picture form comprise a JEPG format, a BMP format, a TIF format and the like. The file in the form of a document includes a pdf format. Then the staff member names the image data respectively and places the image data in the designated database of the system. The receiving module 1 accesses the database and receives contract scanning pages in the database. In a specific embodiment, the database refers to a storage space corresponding to a designated folder in the system, and the staff places the contract scanning pages in the database, that is, the contract scanning pages are placed in the folder. When receiving the contract scanning page in the database, the receiving module 1 accesses the address of the folder to obtain the contract scanning page in the folder. The receiving module 1 determines whether the contract scanned page is a contract scanned page according to a file suffix in a database when acquiring the contract scanned page in a folder. The receiving module 1 reads the suffix of each file in the folder, determines the file to be a contract scanning page if the suffix is in a preset contract scanning page format, and receives the upload. If the suffixes dwg, exe and the like do not belong to the preset contract scanning page format, determining that the pages are not contract scanning pages and not receiving the upload. The first contract page number is the page number on the contract scanning page, and is used for marking the contract scanning page, so that a plurality of scanning pages can be conveniently distinguished.
The contract template is uploaded to the system after a system administrator makes a contract according to the transaction. The contract template has related key pages and fixed pages. When making a contract template, a system administrator makes the key pages and the fixed pages respectively and then combines the key pages and the fixed pages together according to the order of contracts. The fixed page is fixed and unchangeable, is manufactured in an encrypted form, and does not allow others to change. Since the fixed page and the key page are in different formats, the key page can be identified by identifying whether the pages in the contract template are encrypted. The second contract page number is the number of pages set on the key page for distinguishing a plurality of key pages. After the staff selects the type of the contract, the first obtaining module 2 obtains a preset contract template.
After reading the first contract page number of the uploaded contract scanning page, the generation module 3 searches for a second contract page number corresponding to all key pages in the contract template, the read first contract page number is respectively matched with the second contract page number, if the matching is successful, the generation module 3 replaces the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number, namely deletes the key page in the contract template, and adds the contract scanning page corresponding to the key page at the position of the original key page, so that the whole contract template contains all clause information and transaction information of the contract, and possesses all elements of the contract, combines the new contract templates, and the generation module 3 generates the electronic contract document and puts the electronic contract document into a system for storage.
Referring to fig. 6, the generating module 3 further includes:
a searching unit 31, configured to search for the preset mark;
the analyzing unit 32 is configured to analyze the preset mark to generate the second contract page number;
a matching unit 33 for matching the first contract page number with the second contract page number;
a replacing unit 34, configured to replace, if matching is successful, the contract scanned page corresponding to the first contract page number with the key page corresponding to the second contract page number;
the generating unit 35 generates an electronic contract document.
In this embodiment, when the system administrator makes the contract template, the system administrator distinguishes the key pages and the fixed pages in the contract template, and marks the key pages. For example, if the page numbers of the key page template are one, two, and seven, the page numbers are set to be one, two, and seven as the marks of the key page. When the search unit 31 searches for the flag that the page sequence number is "one", "two", or "seven", it is determined that the page is the key page. In another specific embodiment of the scheme, a system administrator adds different watermark marks into the key pages, the corresponding system searches for the watermark marks in the contract template, and the pages with the watermark marks are confirmed as the key pages. Then, the parsing unit 32 parses the mark according to a preset rule to obtain a second contract page number. After reading the second contract page numbers of the key pages, the matching unit 33 matches the at least one second contract page number with the at least one first contract page number, respectively. For example, the parsing unit 32 parses that the second contract page number of the first key page is 1, and the second contract page number of the second key page is 2. The matching unit 33 reads the contract template, and when the first contract page number of the first contract scanned page is 1 and the second contract page number of the second contract scanned page is 2, the matching unit 33 matches the first contract scanned page with the first key page and matches the second contract scanned page with the second key page. After the matching is successful, the replacing unit 34 deletes the key page from the contract template, and inserts the contract scanned page matched with the key page into the position of the key page, so that the contract scanned page replaces the key page. The generating unit 35 generates an electronic contract document.
In another embodiment, the searching unit 31 searches for three preset marks, the analyzing unit 32 generates three second contract pages 1, 2, and 7 respectively after analyzing, and the three first contract pages of the three acquired contract scan pages are 1, 2, and 3 respectively. The specific matching method of the matching unit 33 is as follows: matching according to the ranking sequence of the page numbers, and matching the key page with the second contract page number of 1 with the contract scanning page with the first contract page number of 1; matching the key page with the second contract page number of 2 with the contract scanning page with the first contract page number of 2; the key pages with the second contract page number of 7 are matched with the contract scanned pages with the first contract page number of 3.
Further, the contract filing apparatus further includes:
the scanning module 4 is used for scanning the electronic contract document and judging whether a preset mark exists or not;
and the first prompting module 5 is used for sending a preset first prompting signal if the electronic contract document has a preset mark.
In this embodiment, after the electronic contract document is formed, the scanning module 4 scans the electronic contract document to see whether the electronic contract document has the preset mark of the key page. Because all the key pages are pages needing to be filled with transaction information, if the key pages are still in the electronic contract document, the contract is incomplete. Whether the electronic contract document has the key pages is judged by searching whether the electronic contract document has the preset marks or not, so that whether the electronic contract document is complete or not is judged. If the preset mark is found in the electronic contract document after scanning, the fact that the key page is not replaced indicates that the electronic contract document is incomplete, therefore, the first prompting module 5 sends out a first prompting signal to remind a worker that the electronic contract document is wrong or incomplete and needs to be restocked. The first prompt signal includes a dialog box generated by the system to prompt the staff, or controls the LED lamp to flash to remind the staff, or controls the buzzer to emit corresponding sound to remind the staff.
Referring to fig. 7, the generating unit 35 further includes:
a sending subunit 351, configured to send the replaced contract template to the background;
the generating subunit 352 is configured to generate the electronic contract document after receiving the confirmation instruction.
In this embodiment, after the contract scanning page replaces the key page in the contract template, the sending subunit 351 sends the replaced contract template to the interface end used by the staff for displaying, and the interface end used by the staff is the background, so that the staff can browse and confirm the electronic contract to be generated. After the confirmation of the staff, the staff sends a confirmation instruction to the system through the background, and after the generation subunit 352 receives the confirmation instruction sent by the background, the contract templates into which the image data are inserted and the key page templates are deleted are integrated into a new document to generate an electronic contract document.
Referring to fig. 8, the contract filing apparatus further includes:
a second obtaining module 6, configured to obtain the number of key pages in the contract template;
the judging module 7 is used for judging whether the page number of the contract scanning page is consistent with the number of the key pages;
and the second prompt module 8 is configured to send a preset second prompt signal if the page number of the contract scanned pages is inconsistent with the number of the key pages.
In this embodiment, all the key pages in the contract template must be replaced, and the information in the whole contract is complete. If the number of the contract scanning pages is inconsistent with that of the key pages, the key pages are not replaced, and the corresponding generated electronic contract document is incomplete. The second obtaining module 6 obtains the number of key pages in the contract template by obtaining the number of marks in the contract template, and since each key page has one mark, the number of marks is the same as the number of key pages. The judging module 7 judges whether the number of the contract scanning pages is consistent with the number of the key pages, i.e. compares whether the two numbers are consistent. If the two values are not consistent, the corresponding key page in the contract is not replaced or the replacement is wrong, so that the generated electronic contract document is incomplete or wrong. Therefore, the second prompt module 8 issues the second prompt signal. The second prompt signal may be the same as the first prompt signal, and includes a dialog box generated by the system to prompt the worker, or controls the LED lamp to flash to prompt the worker, or controls the buzzer to emit corresponding sound to prompt the worker.
Further, the contract template is a text document, and the contract filing apparatus further includes:
the identification module is used for reading the contract template and identifying a space and/or an enter label in the text;
and the setting module is used for setting the page where the blank space and/or the enter label are located as the key page when the blank space and/or the enter label continuously exceed a certain number.
In this embodiment, the contract template is in a text format, the positions in the text format where information needs to be filled are all blank pages, and the positions where information needs to be filled are all key pages, so that the identification module identifies the blank pages in the contract template to determine the key pages. When the space command or the enter command is input, a space label or an enter label is left to generate a blank position, or when the space command is input, an underline instruction is added, and a corresponding text has a blank position. And the identification module reads the contract template, browses all pages once, identifies that the text is a space label, a carriage return label or an underline of the space label, and judges that the position is blank. After the recognition module recognizes the blank position in the text, the further setting module judges whether the blank position is a position for filling transaction information, the position for filling the transaction information needs a certain space and cannot be too small, so that when the number of the blank labels and/or the carriage return labels continuously exceeds a certain number, for example, 20 blank labels or 3 carriage return labels are continuously provided, the setting module judges that the blank position is to fill some transaction information, and further, the page where the blank position is located is set as a key page.
Referring to fig. 9, the contract filing apparatus further includes:
and the naming module 9 is used for naming the electronic contract document by using the contract template name and the generation date of the electronic contract document.
In this embodiment, the contract template name is named after the system administrator makes the contract template, and is generally named according to the type of the contract or the transaction name, for example, "a product transaction contract". The date of generation of the electronic contract document is the date of acquisition of the system access network, and the date is based on the date of the location of the system. The naming module 9 acquires the contract template name and the generation date of the electronic contract document, and combines the contents of the contract template name and the generation date of the electronic contract document into: the product A transaction contract 20180326 is named by the content as the electronic contract document, and the contract content and the filing date of the electronic contract document are displayed, so that the management of all contracts by workers is facilitated.
To sum up, the contract filing device of the application scans the key pages of the complete contract to form the contract scanning piece, and then replaces the contract scanning piece and the key pages in the original contract template corresponding to the contract, so that the electronic contract document of the contract can be formed, and the contract filing is completed. When the method is used for recording contracts, workers only need to scan key pages of the contracts without scanning all the contracts, so that the workload of the workers is reduced, especially when a large number of contracts are recorded, the workload of the workers is reduced, and the speed of batch contract recording is increased.
Referring to fig. 10, a computer device, which may be a server and whose internal structure may be as shown in fig. 10, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer equipment is used for storing data such as contract templates, key pages, fixed pages and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of contract filing.
The processor executes the contract filing method and comprises the following steps: receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page; acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page; and when the first contract page number is matched with the second contract page number, replacing the key page with the contract scanning page to generate an electronic contract document.
In one embodiment, the above-mentioned processor includes a preset mark in a key page of the contract template, and when the first contract page number matches the second contract page number, the key page is replaced with the contract scan page, and the step of generating the electronic contract document includes: searching the preset mark; analyzing the preset mark to generate the second contract page number; matching the first contract page number with the second contract page number; if the matching is successful, replacing the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number; an electronic contract document is generated.
In one embodiment, the step of generating the electronic contract document by the processor comprises: scanning the electronic contract document and judging whether a preset mark exists or not; if so, sending a preset first prompt signal.
In one embodiment, the step of generating the electronic contract document by the processor includes: sending the replaced contract template to a background; and after receiving the confirmation instruction, generating an electronic contract document.
In one embodiment, the step of generating the electronic contract document by the processor comprises: acquiring the number of key pages in the contract template; judging whether the page number of the contract scanning pages is consistent with the number of the key pages; if not, sending a preset second prompt signal.
In one embodiment, the contract template is a text document, and the method for setting the key pages by the processor includes: reading the contract template, and identifying a space and/or an enter label in the text; and when the number of the spaces and/or the carriage return labels continuously exceeds a certain number, setting the pages where the spaces and/or the carriage return labels are located as the key pages.
In one embodiment, the step of generating the electronic contract document by the processor comprises: and naming the electronic contract document by using the contract template name and the generation date of the electronic contract document.
In summary, the computer device of the present application scans the key pages of the complete contract to form the image data, and then inserts the image data into the corresponding position of the original contract template corresponding to the contract, so as to form the electronic contract document and complete the filing of the contract. When the method is used for recording contracts, workers only need to scan key pages of the contracts without scanning all the contracts, so that the workload of the workers is reduced, especially when a large number of contracts are recorded, the workload of the workers is reduced, and the speed of batch contract recording is increased.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the present teachings and is not intended to limit the computing devices to which the present teachings may be applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a contract filing method, and specifically: receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page; acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page; and when the first contract page number is matched with the second contract page number, replacing the key page with the contract scanning page to generate an electronic contract document.
In one embodiment, the above-mentioned processor includes a preset mark in a key page of the contract template, and when the first contract page number matches the second contract page number, the key page is replaced with the contract scan page, and the step of generating the electronic contract document includes: searching the preset mark; analyzing the preset mark to generate the second contract page number; matching the first contract page number with the second contract page number; if the matching is successful, replacing the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number; an electronic contract document is generated.
In one embodiment, the step of generating the electronic contract document by the processor comprises: scanning the electronic contract document and judging whether a preset mark exists or not; if so, sending a preset first prompt signal.
In one embodiment, the step of generating the electronic contract document by the processor includes: sending the replaced contract template to a background; and after receiving the confirmation instruction, generating an electronic contract document.
In one embodiment, the step of generating the electronic contract document in the processor described above is followed by: acquiring the number of key pages in the contract template; judging whether the page number of the contract scanning pages is consistent with the number of the key pages; if not, sending a preset second prompt signal.
In one embodiment, the contract template is a text document, and the method for setting the key pages by the processor includes: reading the contract template, and identifying a space and/or an enter label in the text; and when the number of the spaces and/or the carriage return labels continuously exceeds a certain number, setting the pages where the spaces and/or the carriage return labels are located as the key pages.
In one embodiment, the step of generating the electronic contract document by the processor comprises: and naming the electronic contract document by using the contract template name and the generation date of the electronic contract document.
In summary, the storage medium of the present application scans the key pages of the complete contract to form image data, and then inserts the image data into the corresponding position of the original contract template corresponding to the contract, so as to form an electronic contract document and complete the filing of the contract. When the method is used for recording contracts, workers only need to scan key pages of the contracts without scanning all the contracts, so that the workload of the workers is reduced, especially when a large number of contracts are recorded, the workload of the workers is reduced, and the speed of batch contract recording is increased.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method of filing a contract, comprising the steps of:
receiving an uploaded contract scanning page, wherein the contract scanning page comprises a first contract page number corresponding to the contract scanning page;
acquiring a preset contract template, wherein the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page;
and when the first contract page number is matched with the second contract page number, replacing the key page with the contract scanning page to generate an electronic contract document.
2. The contracting filing method according to claim 1, wherein the key page includes a preset mark, and when the first contract page number matches the second contract page number, the key page is replaced with the contract scan page, and the step of generating the electronic contract document includes:
searching the preset mark;
analyzing the preset mark to generate the second contract page number;
matching the first contract page number with the second contract page number;
if the matching is successful, replacing the contract scanning page corresponding to the first contract page number with the key page corresponding to the second contract page number;
an electronic contract document is generated.
3. The contract filing method of claim 2, wherein the step of generating the electronic contract document is followed by:
scanning the electronic contract document and judging whether a preset mark exists or not;
if so, sending a preset first prompt signal.
4. The contract filing method of claim 2, wherein the step of generating the electronic contract document includes:
sending the replaced contract template to a background;
and after receiving the confirmation instruction, generating an electronic contract document.
5. The treaty docket method of claim 1, wherein the step of generating the electronic treaty document is followed by:
acquiring the number of key pages in the contract template;
judging whether the page number of the contract scanning pages is consistent with the number of the key pages;
if not, sending a preset second prompt signal.
6. The contract filing method of claim 1, wherein the contract template is a text document, and the method of setting the key page comprises:
reading the contract template, and identifying a space and/or an enter label in the text;
and when the number of the spaces and/or the carriage return labels continuously exceeds a certain number, setting the pages where the spaces and/or the carriage return labels are located as the key pages.
7. The treaty docket method of claim 1, wherein the step of generating the electronic treaty document is followed by:
and naming the electronic contract document by using the contract template name and the generation date of the electronic contract document.
8. A contract filing apparatus, comprising:
the receiving module is used for receiving the uploaded contract scanning page, and the contract scanning page comprises a first contract page number corresponding to the contract scanning page;
the contract template comprises at least one key page, and the key page comprises a second contract page number corresponding to the key page;
and the generating module is used for replacing the key page with the contract scanning page to generate an electronic contract document when the first contract page number is matched with the second contract page number.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201810501579.8A 2018-05-23 2018-05-23 Contract filing method and device, computer equipment and storage medium Active CN108897727B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810501579.8A CN108897727B (en) 2018-05-23 2018-05-23 Contract filing method and device, computer equipment and storage medium
PCT/CN2018/094886 WO2019223073A1 (en) 2018-05-23 2018-07-06 Contract recordation method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810501579.8A CN108897727B (en) 2018-05-23 2018-05-23 Contract filing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108897727A CN108897727A (en) 2018-11-27
CN108897727B true CN108897727B (en) 2021-09-14

Family

ID=64343169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810501579.8A Active CN108897727B (en) 2018-05-23 2018-05-23 Contract filing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108897727B (en)
WO (1) WO2019223073A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800784B (en) * 2018-12-11 2024-03-19 平安科技(深圳)有限公司 Contract checking method and device based on neural network
CN112241625A (en) * 2020-10-30 2021-01-19 卓尔购信息科技(武汉)有限公司 Method and system for automatically generating contract document based on java language
CN112540965B (en) * 2020-12-07 2023-07-25 湖北航天信息技术有限公司 Paper contract management method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents
CN101616224A (en) * 2008-06-23 2009-12-30 富士施乐株式会社 Document file management system, document management apparatus and document management method
CN101794278A (en) * 2009-09-21 2010-08-04 广东省标准化研究院 Method and software for digitalizing full text of standard document
CN103389969A (en) * 2012-05-07 2013-11-13 腾讯科技(深圳)有限公司 Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN104077162A (en) * 2014-06-30 2014-10-01 北京奇虎科技有限公司 Mobile terminal application template updating and issuing method and device
CN105787626A (en) * 2014-12-25 2016-07-20 远光软件股份有限公司 Contract management method and contract management system
CN106484663A (en) * 2016-10-12 2017-03-08 天闻数媒科技(湖南)有限公司 A kind of extracting method of document content and device
CN107247722A (en) * 2017-04-25 2017-10-13 北京金山安全软件有限公司 File scanning method and device and intelligent terminal
CN107578221A (en) * 2017-09-30 2018-01-12 广州市壹软网络科技有限公司 Contract approval method, contract approval system, and computer-readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089666B2 (en) * 2012-09-28 2018-10-02 Oracle International Corporation Multi-source configurator content processing for terms and conditions document to contract creation
CN106980605B (en) * 2017-02-17 2018-01-19 平安科技(深圳)有限公司 contract generation method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616224A (en) * 2008-06-23 2009-12-30 富士施乐株式会社 Document file management system, document management apparatus and document management method
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents
CN101794278A (en) * 2009-09-21 2010-08-04 广东省标准化研究院 Method and software for digitalizing full text of standard document
CN103389969A (en) * 2012-05-07 2013-11-13 腾讯科技(深圳)有限公司 Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN104077162A (en) * 2014-06-30 2014-10-01 北京奇虎科技有限公司 Mobile terminal application template updating and issuing method and device
CN105787626A (en) * 2014-12-25 2016-07-20 远光软件股份有限公司 Contract management method and contract management system
CN106484663A (en) * 2016-10-12 2017-03-08 天闻数媒科技(湖南)有限公司 A kind of extracting method of document content and device
CN107247722A (en) * 2017-04-25 2017-10-13 北京金山安全软件有限公司 File scanning method and device and intelligent terminal
CN107578221A (en) * 2017-09-30 2018-01-12 广州市壹软网络科技有限公司 Contract approval method, contract approval system, and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"面向合同管理系统的功能测试方法及应用研究";王敏超;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140115;I138-1543 *

Also Published As

Publication number Publication date
CN108897727A (en) 2018-11-27
WO2019223073A1 (en) 2019-11-28

Similar Documents

Publication Publication Date Title
CN108509400B (en) Document template generation method and device, computer equipment and storage medium
CN108897727B (en) Contract filing method and device, computer equipment and storage medium
CN110472219B (en) Electronic file generation method, electronic file generation device, computer equipment and storage medium
US20080117472A1 (en) Document management system, a document management method, and a document management program
US10530957B2 (en) Image filing method
US20080030800A1 (en) Electronic document management system
US20080134023A1 (en) Document processing device, computer readable recording medium, and computer data signal
CN103873719A (en) Document processing device, image processing apparatus, document processing method
CN111708971A (en) Page configuration method and device, computer equipment and storage medium
US5950213A (en) Input sheet creating and processing system
JP6786658B2 (en) Document reading system
US7885920B2 (en) System for managing the property of research and development
CN113918713A (en) Data annotation method and device, computer equipment and storage medium
CN113326010A (en) Error question printing method and device and computer equipment
JP4934181B2 (en) Additional image processing system, image forming apparatus, and additional image adding method
CN108121960A (en) A kind of standard resource processes overall process electronization management-control method
CN111222145B (en) Data unidirectional input system and method
JP2007052614A (en) Documentat management device, document management system and document management method
US20100188674A1 (en) Added image processing system, image processing apparatus, and added image getting-in method
CN114387429A (en) Vehicle property right processing method, device, equipment and medium based on RPA and AI
JP2022120902A (en) Information processing device, learning device, and control method for information processing device
US8472048B2 (en) Job control method, computer readable medium, and job control system
US8223369B2 (en) Information processing apparatus, information processing system and computer readable medium
CN113128191B (en) Method and device for scripted generation of arbitration document
CN110599338A (en) Transaction data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant