WO2019223073A1 - Contract recordation method and apparatus, and computer device and storage medium - Google Patents

Contract recordation method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2019223073A1
WO2019223073A1 PCT/CN2018/094886 CN2018094886W WO2019223073A1 WO 2019223073 A1 WO2019223073 A1 WO 2019223073A1 CN 2018094886 W CN2018094886 W CN 2018094886W WO 2019223073 A1 WO2019223073 A1 WO 2019223073A1
Authority
WO
WIPO (PCT)
Prior art keywords
contract
page
key
scan
page number
Prior art date
Application number
PCT/CN2018/094886
Other languages
French (fr)
Chinese (zh)
Inventor
刘阳
冯心
梁瑾
张瑞光
谢保林
吴思楠
黄心官
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019223073A1 publication Critical patent/WO2019223073A1/en

Links

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

Definitions

  • the present application relates to the field of computer technology, and in particular, to a contract filing method, device, computer equipment, and storage medium.
  • the contract generally consists of a fixed page and a key page; the fixed page contains some fixed terms and does not require the parties to the transaction or multiple parties to fill in the information.
  • the key page contains the specific transaction information such as price, quantity, and trader information that need to be filled out page.
  • the main purpose of this application is to provide a contract filing method, device, computer equipment, and storage medium that can generate electronic contract documents by simply scanning key pages and putting them into a preset system.
  • This application proposes a contract filing method, including:
  • This application also provides a contract filing device, including:
  • a receiving module configured to receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
  • An obtaining module 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;
  • a generating module is configured to replace the key page with the contract scan page when the first contract page number matches the second contract page number to generate an electronic contract document.
  • the present application further provides a computer device including a memory and a processor, where the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, implements the steps of any of the foregoing methods.
  • the present application also provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon, which are executed by a processor to implement the steps of the method according to any one of the foregoing.
  • the contract filing method, device, computer equipment and storage medium of this application scan the key pages of the complete contract to form a scanned copy of the contract, and then replace the scanned contract with the key page in the original contract template corresponding to the contract, that is, It can form the contract electronic contract document and complete the contract filing.
  • the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
  • FIG. 1 is a schematic flowchart of a contract filing method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a specific process of step S3 in the above contract filing method according to an embodiment of the application;
  • FIG. 3 is a schematic flowchart of step S35 in the contract filing method according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for setting a key page in the above contract filing method according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a contract filing device according to an embodiment of the present application.
  • FIG. 6 is a schematic block diagram showing a structure of a generation module of a contract filing device according to an embodiment of the present application
  • FIG. 7 is a schematic block diagram illustrating a structure of a generating unit of a contract filing device according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a contract filing device according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • an embodiment of the present application provides a contract filing method, including steps:
  • S1. Receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
  • step S1 after the transaction party signs the contract, it will sign, seal and agree on the transaction content on the key page of the contract.
  • the staff scans the contract page with the signature or stamp or agreed transaction content to form a contract scan page.
  • the contract scan page includes document files stored as pictures or documents. Files in the form of pictures include JEPG format, BMP format, TIF format, etc. The files in document form include pdf format.
  • the staff then named the image data and placed them in the designated database of the system.
  • the system accesses the database and obtains the contract scan page in the database.
  • the database refers to a storage space corresponding to a designated folder in the system, and a staff member places the contract scan page in the database, that is, places the contract scan page in this folder.
  • the system When the system receives the contract scan page in the database, it accesses the address where the folder is located to obtain the contract scan page in the folder. When the system obtains the contract scan page in the folder, it determines whether it is a contract scan page based on the file suffix in the database. The system reads the suffix of each file in the folder. If the suffix is in the preset contract scan page format, it is determined to be the contract scan page, and the uploaded contract scan page is received. If the suffix is .dwg, .exe, etc., which does not belong to the preset contract scan page format, it is determined that it is not a contract scan page, and uploading is not accepted. The first contract page number is the number of pages on the contract scan page, and is used to mark the contract scan page to facilitate distinguishing multiple scan pages.
  • the contract template is uploaded to the system after the system administrator formulates the contract involved in the transaction.
  • the contract template has key pages and fixed pages.
  • the key page and the fixed page are made separately, and then merged together in the order of the contract.
  • the fixed page is fixed and made in an encrypted form, and no other people are allowed to make any changes. Because the format of the fixed page and the key page are different, 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 and is used to distinguish multiple key pages.
  • the system looks up all the second contract page numbers of the key pages in the contract template, and the read first contract page numbers are respectively related to the second contract.
  • the page numbers match. If there is a match, the contract scan page corresponding to the first contract page number and the key page corresponding to the second contract page number are replaced, that is, the key page in the contract template is deleted, and the corresponding key page is added to the original key page position.
  • the scanned page of the contract In this way, the entire contract template contains all the contract information and transaction information. It has all the elements of the contract.
  • the new contract template is merged to generate the electronic contract document and stored in the system for record.
  • 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 to generate
  • the steps for an electronic contract document include:
  • the key page in the contract template is distinguished from the fixed page, and the key page is marked.
  • the page numbers of the above key page templates are one, two, and seven. Set the page numbers to one, two, and seven as the key page marks.
  • the system administrator adds different watermark marks to the key pages, the corresponding system searches for the watermark marks in the contract template, and confirms the pages with the watermark marks as the key pages. Then the tags are parsed out according to preset rules to obtain the second contract page number.
  • the system After the system reads the second contract page number of the key page, it matches at least one second contract page number with at least one first contract page number, respectively.
  • 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 system reads the contract template, reads that the first contract page number of the first contract scan page is 1, and the second contract page number of the second contract scan page is 2, the first contract scan page and the first key Page matching, matching the second contract scan page to the second key page.
  • the key page is deleted from the contract template, and the contract scan page matching the key page is inserted into the position of the key page, so that the contract scan page replaces the key page.
  • the system finds three preset tags, generates three second contract page numbers of 1, 2, and 7, after parsing, and obtains three first contract page numbers of the three contract scan pages. 1, 2, 3.
  • the specific matching method is: according to the ranking order of the page numbers, matching the key page with the second contract page number 1 and the contract scan page with the first contract page number 1; matching the key page with the second contract page number 2 to the first A contract scan page with a contract page number of 2 is matched; a key page with a second contract page number of 7 is matched with a contract scan page with a first contract page number of 3.
  • the method includes:
  • the system scans the electronic contract document to see whether there are still preset marks of key pages in the electronic contract document. Because the key pages are all pages that need to fill in transaction information, if there are key pages in the electronic contract document, it means that the contract is incomplete. By finding whether there is a preset mark in the electronic contract document, and then determining whether there is a key page in the electronic contract document, it is determined whether the electronic contract document is complete. If after scanning, it is found that there are preset marks in the electronic contract document, indicating that key pages have not been replaced, indicating that the electronic contract document is incomplete, therefore, the system sends a first prompt signal to remind the staff of the electronic contract document Wrong or incomplete and need to be re-filed.
  • the first prompt signal includes a dialog box generated by the system to prompt the staff, or it may be to control the blinking of the LED light to remind the staff, or it may be to control the buzzer to send a corresponding sound to remind the staff.
  • the step of generating an electronic contract document includes:
  • the replaced contract template is sent to the interface used by the staff for display, and the interface used by the staff is the background to enable the staff View and confirm the electronic contract to be generated.
  • the staff sends a confirmation instruction to the system through the background after confirmation.
  • the system integrates the contract template after inserting the image data and deleting the key page template into a new document to generate Electronic contract documents.
  • the method includes:
  • all the key pages in the contract template must be replaced, and the information in the entire contract is complete. If there are inconsistent numbers of contract scan pages and key pages, it means that some key pages have not been replaced, and the corresponding generated electronic contract documents are incomplete.
  • Obtaining the number of key pages in the contract template is obtained by obtaining the number of tags in the contract template. Since there is a tag in each key page, the number of tags is the same as the number of key pages. Determine whether the number of contract scanned pages is consistent with the number of key pages, that is, compare whether the values of the two numbers are consistent. If the two values are not the same, it means that there is no replacement of the key page in the contract, or there is a replacement error, so that the generated electronic contract document is incomplete or incorrect.
  • a second alert signal is issued.
  • the second prompt signal and the first prompt signal may be the same, including a dialog box generated by the system to prompt the staff, or to control the blinking of the LED light to remind the staff, or to control the buzzer to emit a corresponding sound to remind the staff.
  • the contract template is a text document
  • a method for setting the key page includes:
  • the form of the contract template is a text format.
  • the place where information needs to be filled is blank, and the place where information needs to be filled are key pages. Therefore, by identifying the Blank space to judge key pages.
  • the system reads the contract template, browses all the pages, and recognizes that the text is a space label, a carriage return label, or an underlined space label, and determines that this position is blank.
  • step S202 after the system recognizes a blank position in the text, it further determines whether this blank position is a position for filling in transaction information.
  • the position for filling in information needs a certain space and cannot be too small, so When the space tag and / or carriage return tag exceeds a certain number in a row, for example, there are 20 space tags or 3 carriage return tags in a row, it is determined that this blank position is to fill in some transaction information, and then the page where the blank position is set is Key page.
  • the method includes:
  • the name of the contract template is the name given by the system administrator after making the contract template, and is generally named by the type of the contract or the transaction name, such as "A product transaction contract”.
  • the generation date of the electronic contract document is the date obtained by the system accessing the network, and the date is based on the date of the system location.
  • the system obtains the contract template name and the generation date of the electronic contract document, and merges the contents of the two into: "A Product Trading Contract 20180326".
  • the content is used to name the electronic contract document, showing the contract content of the electronic contract document and
  • the filing date is convenient for staff to manage all contracts.
  • the contract filing method of this application scans the key pages of the complete contract to form a scanned copy of the contract, and then replaces the scanned copy of the contract with the key page in the original contract template corresponding to the contract to form a contract.
  • Electronic contract documents complete contract filing.
  • the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
  • this application also proposes a contract filing device, including:
  • the receiving module 1 is configured to receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan 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;
  • a generating module 3 is configured to replace the key page with the contract scan page when the first contract page number matches the second contract page number to generate an electronic contract document.
  • the staff scans the contract page with the signature or stamp or agreed transaction content to form a contract scan page.
  • the contract scan page includes document files stored as pictures or documents. Files in the form of pictures include JEPG format, BMP format, TIF format, etc. The files in document form include pdf format.
  • the staff then named the image data and placed them in the designated database of the system.
  • the receiving module 1 accesses a database and receives a contract scan page in the database.
  • the database refers to a storage space corresponding to a designated folder in the system, and a staff member places the contract scan page in the database, that is, places the contract scan page in this folder.
  • the receiving module 1 accesses the address where the folder is located to obtain the contract scan page in the folder.
  • the receiving module 1 obtains the contract scan page in the folder, it determines whether it is a contract scan page according to the file suffix in the database.
  • the receiving module 1 reads the suffix of each file in the folder. If the suffix is in a preset contract scan page format, it is determined to be a contract scan page, and the upload is received.
  • the suffix is .dwg, .exe, etc., which does not belong to the preset contract scan page format, it is determined that it is not a contract scan page, and uploading is not accepted.
  • the first contract page number is the number of pages on the contract scan page, and is used to mark the contract scan page to facilitate distinguishing multiple scan pages.
  • the contract template is uploaded to the system after the system administrator formulates the contract involved in the exchange.
  • the contract template has key pages and fixed pages.
  • the key page and the fixed page are made separately, and then merged together in the order of the contract.
  • the fixed page is fixed and made in an encrypted form, and no other people are allowed to make any changes.
  • 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 and is used to distinguish multiple key pages. After the staff member selects the type of contract, the first obtaining module 2 obtains a preset contract template.
  • generating module 3 After generating module 3 reads the first contract page number of the uploaded contract scan page, it finds all the second contract page numbers that match the key pages in the contract template, and the read first contract page numbers match the second contract page numbers respectively. If the match is successful, the generation module 3 replaces the contract page corresponding to the first contract page number with the key page corresponding to the second contract page number, that is, deletes the key page in the contract template, and adds the contract corresponding to the key page to the original key page position. Scan the page. In this way, the entire contract template contains all the contract information and transaction information. It has all the elements of the contract. The new contract template is merged, and the generation module 3 generates the electronic contract file, which is stored in the system for record. .
  • the generating module 3 further includes:
  • An analysis unit 32 configured to parse the preset mark to generate the second contract page number
  • a matching unit 33 configured to match the first contract page number with the second contract page number
  • a replacing unit 34 configured to replace the contract scan page corresponding to the first contract page number with a key page corresponding to the second contract page number if the matching is successful;
  • the generating unit 35 is configured to generate an electronic contract document.
  • the key page in the contract template is distinguished from the fixed page, and the key page is marked.
  • the page numbers of the above key page templates are one, two, and seven. Set the page numbers to one, two, and seven as the key page marks.
  • the search unit 31 finds the marks whose page numbers are "one", “two", and "seven", it determines that the page is a key page.
  • the system administrator adds different watermark marks to the key pages, the corresponding system searches for the watermark marks in the contract template, and confirms the pages with the watermark marks as the key pages. Then, the parsing unit 32 parses the mark out according to a preset rule to obtain a second contract page number.
  • the matching unit 33 After the matching unit 33 reads the second contract page number of the key page, it matches at least one second contract page number with at least one first contract page number, respectively.
  • the parsing unit 32 parses out 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, reads that the first contract page number of the first contract scan page is 1, the second contract page number of the second contract scan page is 2, and the matching unit 33 copies the first contract scan page Matches the first key page, matches the second contract scan page with the second key page.
  • the replacement unit 34 deletes the key page from the contract template, and inserts the contract scan page matching the key page into the position of the key page, so that the contract scan page replaces the key page.
  • the generating unit 35 generates an electronic contract document.
  • the searching unit 31 finds three preset marks, and the parsing unit 32 generates three second contract page numbers after parsing, which are 1, 2, and 7, and obtains three third contract page pages.
  • the page numbers of a contract are 1, 2, and 3, respectively.
  • the specific matching method of the matching unit 33 is: according to the ranking order of the page numbers, matching the key page with the second contract page number 1 and the contract scan page with the first contract page number 1; the key with the second contract page number 2 The page is matched with the contract scan page with the first contract page number 2; the key page with the second contract page number 7 is matched with the contract scan page with the first contract page number 3.
  • the above-mentioned contract filing device further includes:
  • the first prompting module 5 is configured to send a preset first prompting signal if the electronic contract document has a preset mark.
  • the scanning module 4 scans the electronic contract document to see if there are any preset marks of key pages in the electronic contract document. Because the key pages are all pages that need to fill in transaction information, if there are key pages in the electronic contract document, it means that the contract is incomplete. By finding whether there is a preset mark in the electronic contract document, and then determining whether there is a key page in the electronic contract document, it is determined whether the electronic contract document is complete.
  • the first reminder module 5 sends a first reminder signal to remind the staff to The electronic contract document is incorrect or incomplete and needs to be re-filed.
  • the first prompt signal includes a dialog box generated by the system to prompt the staff, or it may be to control the blinking of the LED light to remind the staff, or it may be to control the buzzer to send a corresponding sound to remind the staff.
  • the generating unit 35 further includes:
  • the generating subunit 352 is configured to generate an electronic contract document after receiving the confirmation instruction.
  • the sending subunit 351 sends the replaced contract template to the interface used by the staff for display, and the interface used by the staff is the background, so that The staff browses and confirms the electronic contract to be generated. After confirmation, the staff sends a confirmation instruction to the system through the background. After receiving the confirmation instruction from the background, the generating subunit 352 integrates the contract template after inserting the image data and deleting the key page template into a new document to generate an electronic contract document.
  • the above-mentioned contract filing device further includes:
  • a second acquisition module 6 configured to acquire the number of key pages in the contract template
  • a judging module 7 for judging whether the number of pages of the contract scan page is consistent with the number of the key pages
  • a second prompting module 8 is configured to send a preset second prompting signal if the number of pages of the contract scan page is inconsistent with the number of key pages.
  • the second acquisition module 6 acquires the number of key pages in the contract template by acquiring the number of marks in the contract template. Since each key page has a mark, the number of marks is the same as the number of key pages.
  • the judging module 7 judges whether the number of contract scanned pages is consistent with the number of key pages, that is, compares whether the values of the two numbers are consistent.
  • the second prompting module 8 issues a second prompting signal.
  • the second prompt signal and the first prompt signal may be the same, including a dialog box generated by the system to prompt the staff, or to control the blinking of the LED light to remind the staff, or to control the buzzer to emit a corresponding sound to remind the staff.
  • the above contract template is a text document
  • the above contract filing device further includes:
  • An identification module configured to read the contract template and identify spaces and / or carriage return tags in the text
  • a setting module configured to set the page on which the space and / or carriage return tag is located as the key page when the space and / or carriage return tag continuously exceeds a certain number.
  • the form of the contract template is a text format.
  • the text format the place where information needs to be filled in is left blank, and the place where information needs to be filled out is a key page. Therefore, the identification module identifies the Blank space to judge key pages.
  • the recognition module reads the contract template, browses all the pages, and recognizes that the text is a space tag, a carriage return tag, or a space tag underlined, and determines that this position is blank.
  • the further setting module judges whether the blank space is used to fill in the transaction information.
  • the location for filling in the information needs a certain space, and cannot be too small. Therefore, when the space label and / Or the carriage return tag exceeds a certain number in a row, for example, there are 20 space tags or 3 carriage return tags in a row, the setting module determines that the blank position is to fill in some transaction information, and further, the page where the blank position is set is a key page .
  • the contract filing device of this application scans the key pages of the complete contract to form a scanned copy of the contract, and then replaces the scanned copy of the contract with the key page in the original contract template corresponding to the contract to form a contract.
  • Electronic contract documents complete contract filing.
  • the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
  • an embodiment of the present application further provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the computer design processor 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, computer-readable instructions, and a database.
  • the memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium.
  • the computer equipment database is used to store data such as contract templates, key pages, and fixed pages.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the processes of the embodiments of the methods described above are executed.
  • FIG. 9 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 equipment to which the solution of the present application is applied.
  • An embodiment of the present application further provides a computer non-volatile readable storage medium having computer readable instructions stored thereon.
  • the processes of the embodiments of the methods described above are executed.
  • the above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the description of the application and the drawings, or directly or indirectly used in other related The technical fields are equally included in the patent protection scope of this application.

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

Disclosed in the present application are a contract recordation method and apparatus, and a computer device and a storage medium. The method comprises: substituting a key page scanned page of a contract for a corresponding key page of a contract template in a system to form an electronic contract, and keeping a record of the electronic contract. When the method is used for contract recordation, the workload of staffs is reduced, and the contract recordation is accelerated.

Description

合同备案方法、装置、计算机设备和存储介质Contract filing method, device, computer equipment and storage medium
本申请要求于2018年5月23提交中国专利局、申请号为2018105015798,发明名称为“合同备案方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 23, 2018, with application number 2018105015798, and the invention name is "Contract Recording Method, Apparatus, Computer Equipment, and Storage Medium", the entire contents of which are incorporated herein by reference. In this application.
技术领域Technical field
本申请涉及到计算机技术领域,特别是涉及到一种合同备案方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, and in particular, to a contract filing method, device, computer equipment, and storage medium.
背景技术Background technique
合同一般固定页和关键页组成;固定页上是一些固定的条款,不需要交易双方或多方填写信息,关键页是包含有需要填写合同的具体交易信息如价格、数量、交易人资料等信息的页面。当交易方签订合同后将合同进行扫描成电子合同文档后进行备案时,需要将全部合同页都扫描一次合成一个电子合同文档,由于一个合同有多页,做成电子合同文档时需要将每一页都扫描一次,产生较大的工作量,而且页数多的合同还容易出错。The contract generally consists of a fixed page and a key page; the fixed page contains some fixed terms and does not require the parties to the transaction or multiple parties to fill in the information. The key page contains the specific transaction information such as price, quantity, and trader information that need to be filled out page. When the transaction party signs the contract and scans the contract into an electronic contract file for filing, it is necessary to scan all the contract pages into one electronic contract document at a time. Since there are multiple pages in a contract, each electronic contract document needs to be scanned. The pages are scanned once, resulting in a large workload, and contracts with a large number of pages are also prone to errors.
所以提供一种新的合同备案方法是亟需解决的问题。Therefore, it is an urgent problem to provide a new method of contract filing.
技术问题technical problem
本申请的主要目的为提供一种只需将关键页扫描后放入预设的系统中就可以生成电子合同文档的合同备案方法、装置、计算机设备和存储介质。The main purpose of this application is to provide a contract filing method, device, computer equipment, and storage medium that can generate electronic contract documents by simply scanning key pages and putting them into a preset system.
技术解决方案Technical solutions
本申请提出一种合同备案方法,包括:This application proposes a contract filing method, including:
接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;Receiving the uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;Obtaining 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;
当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。When the first contract page number matches the second contract page number, replacing the key page with the contract scan page to generate an electronic contract document.
本申请还提供一种合同备案装置,包括:This application also provides a contract filing device, including:
接收模块,用于接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;A receiving module, configured to receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
获取模块,用于获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;An obtaining module, 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;
生成模块,用于当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。A generating module is configured to replace the key page with the contract scan page when the first contract page number matches the second contract page number to generate an electronic contract document.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述任一项所述方法的步骤。The present application further provides a computer device including a memory and a processor, where the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, implements the steps of any of the foregoing methods.
本申请还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一项所述的方法的步骤。The present application also provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon, which are executed by a processor to implement the steps of the method according to any one of the foregoing.
有益效果Beneficial effect
本申请的合同备案方法、装置、计算机设备和存储介质,将完整合同的关键页进行扫描后形成合同扫描件,然后将该合同扫描件与该合同对应原合同模版中的关键页进行替换,即可以形成合同的电子合同文档,完成合同备案。利用该方法进行合同备案时,工作人员只需扫描合同的关键页即可,不用将合同的全部都进行扫描,减少工作人员的工作量,尤其是在对大量的合同进行备案时,更是减少工作人员的工作量,加快了批量合同备案的速度。The contract filing method, device, computer equipment and storage medium of this application scan the key pages of the complete contract to form a scanned copy of the contract, and then replace the scanned contract with the key page in the original contract template corresponding to the contract, that is, It can form the contract electronic contract document and complete the contract filing. When using this method to record a contract, the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请一实施例的合同备案方法的流程示意图;1 is a schematic flowchart of a contract filing method according to an embodiment of the present application;
图2为本申请一实施例的上述合同备案方法中步骤S3的具体流程示意图;FIG. 2 is a schematic diagram of a specific process of step S3 in the above contract filing method according to an embodiment of the application; FIG.
图3为本申请一实施例的上述合同备案方法中步骤S35的具体流程示意图;FIG. 3 is a schematic flowchart of step S35 in the contract filing method according to an embodiment of the present application; FIG.
图4为本申请一实施例的上述合同备案方法中设置关键页方法的具体流程示意图;FIG. 4 is a schematic flowchart of a method for setting a key page in the above contract filing method according to an embodiment of the present application; FIG.
图5为本申请一实施例的合同备案装置的结构示意图;5 is a schematic structural diagram of a contract filing device according to an embodiment of the present application;
图6为本申请一实施例的合同备案装置的生成模块的结构示意框图;6 is a schematic block diagram showing a structure of a generation module of a contract filing device according to an embodiment of the present application;
图7为本申请一实施例的合同备案装置的生成单元的结构示意框图;7 is a schematic block diagram illustrating a structure of a generating unit of a contract filing device according to an embodiment of the present application;
图8为本申请一实施例的合同备案装置的结构示意框图;FIG. 8 is a schematic block diagram of a contract filing device according to an embodiment of the present application; FIG.
图9为本申请一实施例的计算机设备的结构示意框图。FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
本发明的最佳实施方式Best Mode of the Invention
参照图1,本申请实施例提供一种合同备案方法,包括步骤:Referring to FIG. 1, an embodiment of the present application provides a contract filing method, including steps:
S1、接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;S1. Receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
S2、获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;S2. 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;
S3、当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。S3. When the first contract page number matches the second contract page number, replace the key page with the contract scan page to generate an electronic contract document.
如上述步骤S1所述,交易方签订完合同后,会在合同的关键页上签字、盖章、约定交易内容。工作人员将带有签字或盖章或约定交易内容的合同页面扫描,形成合同扫描页。合同扫描页包括以图片形式或文档形式存储的文档文件。其中图片形式的文件包括JEPG格式、BMP格式、TIF格式等。文档形式的文件包括pdf格式。然后工作人员将影像资料分别命名,将其放在系统的指定数据库。系统访问数据库,获取到数据库中的合同扫描页。在一具体实施例中,数据库是指系统中一个指定的文件夹对应的存储空间,工作人员将合同扫描页放置在数据库中,即将合同扫描页放置在这个文件夹内。系统在接收数据库中的合同扫描页时,访问文件夹所在的地址,获取该文件夹中的合同扫描页。系统在获取文件夹中的合同扫描页时,根据数据库中的文件后缀确定是否是合同扫描页。系统读取该文件夹中的各文件的后缀,如果该后缀是预设的合同扫描页格式,就确定是合同扫描页,接收上传的合同扫描页。如果后缀是.dwg、.exe等不属于预设的合同扫描页格式,就确定不是合同扫描页,不接收上传。第一合同页码是合同扫描页上的页码数,用于对合同扫描页进行标记,方便对多个扫描页进行区分。As described in step S1 above, after the transaction party signs the contract, it will sign, seal and agree on the transaction content on the key page of the contract. The staff scans the contract page with the signature or stamp or agreed transaction content to form a contract scan page. The contract scan page includes document files stored as pictures or documents. Files in the form of pictures include JEPG format, BMP format, TIF format, etc. The files in document form include pdf format. The staff then named the image data and placed them in the designated database of the system. The system accesses the database and obtains the contract scan page in the database. In a specific embodiment, the database refers to a storage space corresponding to a designated folder in the system, and a staff member places the contract scan page in the database, that is, places the contract scan page in this folder. When the system receives the contract scan page in the database, it accesses the address where the folder is located to obtain the contract scan page in the folder. When the system obtains the contract scan page in the folder, it determines whether it is a contract scan page based on the file suffix in the database. The system reads the suffix of each file in the folder. If the suffix is in the preset contract scan page format, it is determined to be the contract scan page, and the uploaded contract scan page is received. If the suffix is .dwg, .exe, etc., which does not belong to the preset contract scan page format, it is determined that it is not a contract scan page, and uploading is not accepted. The first contract page number is the number of pages on the contract scan page, and is used to mark the contract scan page to facilitate distinguishing multiple scan pages.
如上述步骤S2所述,合同模版是系统管理员根据交易所涉及到的合同制定后上传到系统的。合同模版里有关键页和固定页。系统管理员在制作合同模版时,将关键页和固定页分别制作,然后按照合同的顺序合并在一起。其中,固定页是固定不变的,采用加密的形式制作,不允许他人进行任何更改。因固定页和关键页的格式不一样,因此可以通过识别出合同模版中的页面是否进行了加密来识别出关键页。第二合同页码是设置在关键页上的页数,用于对多个关键页进行区分。As described in step S2 above, the contract template is uploaded to the system after the system administrator formulates the contract involved in the transaction. The contract template has key pages and fixed pages. When the system administrator makes the contract template, the key page and the fixed page are made separately, and then merged together in the order of the contract. Among them, the fixed page is fixed and made in an encrypted form, and no other people are allowed to make any changes. Because the format of the fixed page and the key page are different, 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 and is used to distinguish multiple key pages.
如上述步骤S3所述,系统读取上传的合同扫描页的第一合同页码后,查找与合同模版中的关键页的全部的第二合同页码,读取的第一合同页码分别与第二合同页码匹配,如果有匹配成功,就将第一合同页码对应的合同扫描页与第二合同页码对应的关键页进行替换,即删除合同模版中的关键页,在原关键页的位置增加与关键页对应的合同扫描页,这样,整个合同模版中就是含有合同的全部条款信息以及交易信息,具备了合同的全部要素,对新的合同模版合并,生成该电子合同文档,放入系统中进行保存备案。As described in step S3 above, after reading the first contract page number of the uploaded contract scan page, the system looks up all the second contract page numbers of the key pages in the contract template, and the read first contract page numbers are respectively related to the second contract. The page numbers match. If there is a match, the contract scan page corresponding to the first contract page number and the key page corresponding to the second contract page number are replaced, that is, the key page in the contract template is deleted, and the corresponding key page is added to the original key page position. The scanned page of the contract. In this way, the entire contract template contains all the contract information and transaction information. It has all the elements of the contract. The new contract template is merged to generate the electronic contract document and stored in the system for record.
参照图2,进一步地,上述关键页中包含有预设标记,所述当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档的步骤包括: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 to generate The steps for an electronic contract document include:
S31、查找所述预设标记;S31. Find the preset mark.
S32、解析所述预设标记,生成所述第二合同页码;S32. Parse the preset mark to generate the second contract page number.
S33、将所述第一合同页码与所述第二合同页码匹配;S33. Match the first contract page number with the second contract page number.
S34、若匹配成功,将所述第一合同页码对应的合同扫描页替换为所述第二合同页码对应的关键页;S34. If the matching is successful, replace the contract scan page corresponding to the first contract page number with a key page corresponding to the second contract page number.
S35、生成电子合同文档。S35. Generate an electronic contract document.
本实施例中,系统管理员在制作合同模版时,将合同模版中的关键页和固定页进行区分,将关键页加上标记。例如上述关键页模版的页面序号是一、二、七,则设置页面序号为一、二、七是关键页的标记。系统查找到页面序号是“一”、“二”、“七”的标记时,确定该页面是关键页。在本方案另一具体实施例中,系统管理员将关键页中添加不同的水印标记,对应的系统查找合同模版中的水印标记,将带有水印标记的页面确认为关键页。然后根据预设的规则将标记解析出来,得到第二合同页码。系统读取到关键页第二合同页码后,将至少一个第二合同页码分别与至少一个第一合同页码匹配。比如解析出第一个关键页的第二合同页码是1,第二个关键页的第二合同页码是2。系统读取合同模版,读取到第一个合同扫描页的第一合同页码是1,第二个合同扫描页的第二合同页码是2,就将第一个合同扫描页与第一个关键页匹配,将第二个合同扫描页与第二个关键页匹配。匹配成功后,将关键页从合同模版中删除,同时将与关键页匹配的合同扫描页插入到关键页的位置,实现合同扫描页替换了关键页。形成电子合同文档。In this embodiment, when the system administrator makes the contract template, the key page in the contract template is distinguished from the fixed page, and the key page is marked. For example, the page numbers of the above key page templates are one, two, and seven. Set the page numbers to one, two, and seven as the key page marks. When the system finds the mark of the page serial number is "one", "two", "seven", it is determined that the page is a key page. In another specific embodiment of the solution, the system administrator adds different watermark marks to the key pages, the corresponding system searches for the watermark marks in the contract template, and confirms the pages with the watermark marks as the key pages. Then the tags are parsed out according to preset rules to obtain the second contract page number. After the system reads the second contract page number of the key page, it matches at least one second contract page number with at least one first contract page number, respectively. For example, 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 system reads the contract template, reads that the first contract page number of the first contract scan page is 1, and the second contract page number of the second contract scan page is 2, the first contract scan page and the first key Page matching, matching the second contract scan page to the second key page. After the match is successful, the key page is deleted from the contract template, and the contract scan page matching the key page is inserted into the position of the key page, so that the contract scan page replaces the key page. Form electronic contract documents.
在另一具体实施例中,系统查找到三个预设标记,解析后生成三个第二合同页码分别是1、2、7,获取的三个合同扫描页的三个第一合同页码分别是1、2、3。具体匹配方法是:则根据页码的排行顺序进行匹配,将第二合同页码为1的关键页与第一合同页码为1的合同扫描页进行匹配;将第二合同页码为2的关键页与第一合同页码为2的合同扫描页进行匹配;将第二合同页码为7的关键页与第一合同页码为3的合同扫描页进行匹配。In another specific embodiment, the system finds three preset tags, generates three second contract page numbers of 1, 2, and 7, after parsing, and obtains three first contract page numbers of the three contract scan pages. 1, 2, 3. The specific matching method is: according to the ranking order of the page numbers, matching the key page with the second contract page number 1 and the contract scan page with the first contract page number 1; matching the key page with the second contract page number 2 to the first A contract scan page with a contract page number of 2 is matched; a key page with a second contract page number of 7 is matched with a contract scan page with a first contract page number of 3.
进一步地,上述生成电子合同文档的步骤之后,包括:Further, after the step of generating the electronic contract document, the method includes:
S4、扫描电子合同文档,判断是否有预设标记;S4. Scan the electronic contract document to determine whether there is a preset mark;
S5、若是,发出预设的第一提示信号。S5. If yes, send a preset first prompt signal.
本实施例中,形成了电子合同文档后,系统再将电子合同文档进行扫描,看电子合同文档中是否还有关键页的预设标记。因为关键页面中均是有需要填写交易信息的页面,如果电子合同文档中还有关键页,说明合同是不完整的。通过查找电子合同文档中是否有预设标记,进而判断电子合同文档中是否还有关键页,从而判断电子合同文档是否是完整的。如果扫描后发现电子合同文档中还有预设标记,说明还有关键页没有被替换掉,说明电子合同文档是不完整的,因此,系统发出第一提示信号,提醒工作人员对该电子合同文档错误或不完整,需要重新备案。第一提示信号包括系统生成的对话框提示工作人员,也可以是控制LED灯闪烁提醒工作人员,也可以是控制蜂鸣器发出相应的声音提醒工作人员。In this embodiment, after the electronic contract document is formed, the system scans the electronic contract document to see whether there are still preset marks of key pages in the electronic contract document. Because the key pages are all pages that need to fill in transaction information, if there are key pages in the electronic contract document, it means that the contract is incomplete. By finding whether there is a preset mark in the electronic contract document, and then determining whether there is a key page in the electronic contract document, it is determined whether the electronic contract document is complete. If after scanning, it is found that there are preset marks in the electronic contract document, indicating that key pages have not been replaced, indicating that the electronic contract document is incomplete, therefore, the system sends a first prompt signal to remind the staff of the electronic contract document Wrong or incomplete and need to be re-filed. The first prompt signal includes a dialog box generated by the system to prompt the staff, or it may be to control the blinking of the LED light to remind the staff, or it may be to control the buzzer to send a corresponding sound to remind the staff.
参照图3,进一步地,所述生成电子合同文档的步骤,包括:Referring to FIG. 3, further, the step of generating an electronic contract document includes:
S351、发送替换后的合同模版至后台;S351. Send the replaced contract template to the background;
S352、接收到确认指令后,生成电子合同文档。S352. After receiving the confirmation instruction, generate an electronic contract document.
如上述步骤S531所述,将合同扫描页替换了合同模版中的关键页后,将替换后的合同模版发送给工作人员使用的界面端进行展示,工作人员使用的界面端即后台,使工作人员对即将生成的电子合同浏览确认。As described in step S531 above, after replacing the key page in the contract template with the contract scan page, the replaced contract template is sent to the interface used by the staff for display, and the interface used by the staff is the background to enable the staff View and confirm the electronic contract to be generated.
如上述步骤S532所述,工作人员确认后通过后台发送确认指令给系统,系统接收到后台发来的确认指令后,将插入影像资料以及删除关键页模版后的合同模版整合成新的文档,生成电子合同文档。As described in step S532 above, the staff sends a confirmation instruction to the system through the background after confirmation. After the system receives the confirmation instruction from the background, the system integrates the contract template after inserting the image data and deleting the key page template into a new document to generate Electronic contract documents.
进一步地,上述所述生成电子合同文档的步骤之后包括:Further, after the step of generating an electronic contract document, the method includes:
S6、获取所述合同模版中关键页的数量;S6. Obtain the number of key pages in the contract template.
S7、判断所述合同扫描页的页面数量是否与所述关键页的数量一致;S7. Determine whether the number of pages of the contract scan page is consistent with the number of key pages;
S8、若否,发出预设的第二提示信号。S8. If not, send a preset second prompt signal.
本实施例中,合同模版中的关键页必须全部被替换出去,整个合同里的信息才是完整的。如果有合同扫描页和关键页的数量不一致,说明有的关键页没有被替换掉,对应的生成的电子合同文档是不完整的。获取合同模版中关键页的数量,是通过获取合同模版中的标记数量来获取的,因每个关键页中均有一个标记,因此标记数量与关键页的数量是相同的。判断合同扫描页的数量与关键页的数量是否一致,即比较两个数量的数值是否一致。如果两个数值不一致,说明合同中有关键页没有替换,或者是有替换错误,使得生成的电子合同文档是不完整或者是错误的。因此,发出第二提示信号。第二提示信号与第一提示信号可以是相同的,包括系统生成的对话框提示工作人员,也可以是控制LED灯闪烁提醒工作人员,也可以是控制蜂鸣器发出相应的声音提醒工作人员。In this embodiment, all the key pages in the contract template must be replaced, and the information in the entire contract is complete. If there are inconsistent numbers of contract scan pages and key pages, it means that some key pages have not been replaced, and the corresponding generated electronic contract documents are incomplete. Obtaining the number of key pages in the contract template is obtained by obtaining the number of tags in the contract template. Since there is a tag in each key page, the number of tags is the same as the number of key pages. Determine whether the number of contract scanned pages is consistent with the number of key pages, that is, compare whether the values of the two numbers are consistent. If the two values are not the same, it means that there is no replacement of the key page in the contract, or there is a replacement error, so that the generated electronic contract document is incomplete or incorrect. Therefore, a second alert signal is issued. The second prompt signal and the first prompt signal may be the same, including a dialog box generated by the system to prompt the staff, or to control the blinking of the LED light to remind the staff, or to control the buzzer to emit a corresponding sound to remind the staff.
参照图4,进一步地,所述合同模版为文本文档,设置所述关键页的方法包括:Referring to FIG. 4, further, the contract template is a text document, and a method for setting the key page includes:
S201、读取所述合同模版,识别文本中的空格和/或回车标签;S201. Read the contract template and identify spaces and / or carriage return tags in the text.
S202、当所述空格和/或回车标签连续超过一定数量,设置所述空格和/或回车标签所在的页面为所述关键页。S202. When the space and / or carriage return tag continuously exceeds a certain number, set a page on which the space and / or carriage return tag is located as the key page.
如上述步骤S201所述,合同模版的形式为文本格式,文本格式中对需要填写信息的位置都是需要留下空白,而需要填写信息的位置都是关键页,因此,通过识别合同模版中的空白处来判断关键页。在制作文本时,通过输入空格命令或回车命令留下空格标签或回车标签从而生成空白位置,或者,在输入空格命令时加入下划线指令,对应的文本中有空白位置。系统读取合同模版,将所有的页面浏览一遍,识别出文本是空格标签、回车标签或者空格标签加下划线,判定这一位置是空白。As described in step S201 above, the form of the contract template is a text format. In the text format, the place where information needs to be filled is blank, and the place where information needs to be filled are key pages. Therefore, by identifying the Blank space to judge key pages. When making text, enter a space command or a carriage return command to leave a space label or a carriage return label to generate a blank space, or add an underline instruction when entering a space command, and there is a blank space in the corresponding text. The system reads the contract template, browses all the pages, and recognizes that the text is a space label, a carriage return label, or an underlined space label, and determines that this position is blank.
如上述步骤S202所述,系统识别出了文本中的空白位置后,进一步的判断这个空白位置是否是用于填写交易信息的位置,用于填写信息的位置需要有一定空间,不能太小,因而当空格标签和/或回车标签连续超过一定数量,比如连续有20个空格标签或3个回车标签,就判定这个空白位置是要填写一些交易信息,进而,设置该空白位置所在的页面是关键页。As described in step S202 above, after the system recognizes a blank position in the text, it further determines whether this blank position is a position for filling in transaction information. The position for filling in information needs a certain space and cannot be too small, so When the space tag and / or carriage return tag exceeds a certain number in a row, for example, there are 20 space tags or 3 carriage return tags in a row, it is determined that this blank position is to fill in some transaction information, and then the page where the blank position is set is Key page.
进一步地,上述生成电子合同文档的步骤之后包括:Further, after the step of generating the electronic contract document, the method includes:
S9、以所述合同模版名称以及所述电子合同文档的生成日期为所述电子合同文档命名。S9. Name the electronic contract document with the contract template name and the generation date of the electronic contract document.
如上述步骤S9所述,合同模版名称是系统管事员制作合同模版后进行的命名,一般是是以合同的类型或交易名称进行命名,例如“A产品交易合同”。电子合同文档的生成日期是系统访问网络获取的日期,该日期是以系统所在地的日期为准。系统获取到合同模版名称和电子合同文档的生成日期,将两者的内容合并为:“A产品交易合同20180326”,以该内容为该电子合同文档命名,显示了该电子合同文档的合同内容以及备案日期,方便工作人员对所有合同进行管理。As described in step S9 above, the name of the contract template is the name given by the system administrator after making the contract template, and is generally named by the type of the contract or the transaction name, such as "A product transaction contract". The generation date of the electronic contract document is the date obtained by the system accessing the network, and the date is based on the date of the system location. The system obtains the contract template name and the generation date of the electronic contract document, and merges the contents of the two into: "A Product Trading Contract 20180326". The content is used to name the electronic contract document, showing the contract content of the electronic contract document and The filing date is convenient for staff to manage all contracts.
综上所述,本申请的合同备案方法,将完整合同的关键页进行扫描后形成合同扫描件,然后将该合同扫描件与该合同对应原合同模版中的关键页进行替换,即可以形成合同的电子合同文档,完成合同备案。利用该方法进行合同备案时,工作人员只需扫描合同的关键页即可,不用将合同的全部都进行扫描,减少工作人员的工作量,尤其是在对大量的合同进行备案时,更是减少工作人员的工作量,加快了批量合同备案的速度。To sum up, the contract filing method of this application scans the key pages of the complete contract to form a scanned copy of the contract, and then replaces the scanned copy of the contract with the key page in the original contract template corresponding to the contract to form a contract. Electronic contract documents, complete contract filing. When using this method to record a contract, the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
参照图5,本申请还提出一种合同备案装置,包括:Referring to FIG. 5, this application also proposes a contract filing device, including:
接收模块1,用于接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;The receiving module 1 is configured to receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
第一获取模块2,用于获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;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;
生成模块3,用于当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。A generating module 3 is configured to replace the key page with the contract scan page when the first contract page number matches the second contract page number to generate an electronic contract document.
本实施例中,交易方签订完合同后,会在合同的关键页上签字、盖章、约定交易内容。工作人员将带有签字或盖章或约定交易内容的合同页面扫描,形成合同扫描页。合同扫描页包括以图片形式或文档形式存储的文档文件。其中图片形式的文件包括JEPG格式、BMP格式、TIF格式等。文档形式的文件包括pdf格式。然后工作人员将影像资料分别命名,将其放在系统的指定数据库。接收模块1访问数据库,接收数据库中的合同扫描页。在一具体实施例中,数据库是指系统中一个指定的文件夹对应的存储空间,工作人员将合同扫描页放置在数据库中,即将合同扫描页放置在这个文件夹内。接收模块1在接收数据库中的合同扫描页时,访问文件夹所在的地址,获取该文件夹中的合同扫描页。接收模块1在获取文件夹中的合同扫描页时,根据数据库中的文件后缀确定是否是合同扫描页。接收模块1读取该文件夹中的各文件的后缀,如果该后缀是预设的合同扫描页格式,就确定是合同扫描页,接收上传。如果后缀是.dwg、.exe等不属于预设的合同扫描页格式,就确定不是合同扫描页,不接收上传。第一合同页码是合同扫描页上的页码数,用于对合同扫描页进行标记,方便对多个扫描页进行区分。In this embodiment, after the transaction party signs the contract, it will sign, seal, and agree on the transaction content on the key pages of the contract. The staff scans the contract page with the signature or stamp or agreed transaction content to form a contract scan page. The contract scan page includes document files stored as pictures or documents. Files in the form of pictures include JEPG format, BMP format, TIF format, etc. The files in document form include pdf format. The staff then named the image data and placed them in the designated database of the system. The receiving module 1 accesses a database and receives a contract scan page in the database. In a specific embodiment, the database refers to a storage space corresponding to a designated folder in the system, and a staff member places the contract scan page in the database, that is, places the contract scan page in this folder. When receiving the contract scan page in the database, the receiving module 1 accesses the address where the folder is located to obtain the contract scan page in the folder. When the receiving module 1 obtains the contract scan page in the folder, it determines whether it is a contract scan page according to the file suffix in the database. The receiving module 1 reads the suffix of each file in the folder. If the suffix is in a preset contract scan page format, it is determined to be a contract scan page, and the upload is received. If the suffix is .dwg, .exe, etc., which does not belong to the preset contract scan page format, it is determined that it is not a contract scan page, and uploading is not accepted. The first contract page number is the number of pages on the contract scan page, and is used to mark the contract scan page to facilitate distinguishing multiple scan pages.
合同模版是系统管理员根据交易所涉及到的合同制定后上传到系统的。合同模版里有关键页和固定页。系统管理员在制作合同模版时,将关键页和固定页分别制作,然后按照合同的顺序合并在一起。其中,固定页是固定不变的,采用加密的形式制作,不允许他人进行任何更改。因固定页和关键页的格式不一样,因此可以通过识别出合同模版中的页面是否进行了加密来识别出关键页。第二合同页码是设置在关键页上的页数,用于对多个关键页进行区分。工作人员选择合同的类型后,第一获取模块2获取预设的合同模版。The contract template is uploaded to the system after the system administrator formulates the contract involved in the exchange. The contract template has key pages and fixed pages. When the system administrator makes the contract template, the key page and the fixed page are made separately, and then merged together in the order of the contract. Among them, the fixed page is fixed and made in an encrypted form, and no other people are allowed to make any changes. Because the format of the fixed page and the key page are different, 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 and is used to distinguish multiple key pages. After the staff member selects the type of contract, the first obtaining module 2 obtains a preset contract template.
生成模块3读取上传的合同扫描页的第一合同页码后,查找与合同模版中的关键页的全部的第二合同页码,读取的第一合同页码分别与第二合同页码匹配,如果有匹配成功,生成模块3就将第一合同页码对应的合同扫描页与第二合同页码对应的关键页进行替换,即删除合同模版中的关键页,在原关键页的位置增加与关键页对应的合同扫描页,这样,整个合同模版中就是含有合同的全部条款信息以及交易信息,具备了合同的全部要素,对新的合同模版合并,生成模块3生成该电子合同文档,放入系统中进行保存备案。After generating module 3 reads the first contract page number of the uploaded contract scan page, it finds all the second contract page numbers that match the key pages in the contract template, and the read first contract page numbers match the second contract page numbers respectively. If the match is successful, the generation module 3 replaces the contract page corresponding to the first contract page number with the key page corresponding to the second contract page number, that is, deletes the key page in the contract template, and adds the contract corresponding to the key page to the original key page position. Scan the page. In this way, the entire contract template contains all the contract information and transaction information. It has all the elements of the contract. The new contract template is merged, and the generation module 3 generates the electronic contract file, which is stored in the system for record. .
参照图6,进一步地,上述生成模块3包括:Referring to FIG. 6, the generating module 3 further includes:
查找单元31,用于查找所述预设标记;A searching unit 31, configured to search the preset mark;
解析单元32,用于解析所述预设标记,生成所述第二合同页码;An analysis unit 32, configured to parse the preset mark to generate the second contract page number;
匹配单元33,用于将所述第一合同页码与所述第二合同页码匹配;A matching unit 33, configured to match the first contract page number with the second contract page number;
替换单元34,用于若匹配成功,将所述第一合同页码对应的合同扫描页替换为所述第二合同页码对应的关键页;A replacing unit 34, configured to replace the contract scan page corresponding to the first contract page number with a key page corresponding to the second contract page number if the matching is successful;
生成单元35,用于生成电子合同文档。The generating unit 35 is configured to generate an electronic contract document.
本实施例中,系统管理员在制作合同模版时,将合同模版中的关键页和固定页进行区分,将关键页加上标记。例如上述关键页模版的页面序号是一、二、七,则设置页面序号为一、二、七是关键页的标记。查找单元31查找到页面序号是“一”、“二”、“七”的标记时,确定该页面是关键页。在本方案另一具体实施例中,系统管理员将关键页中添加不同的水印标记,对应的系统查找合同模版中的水印标记,将带有水印标记的页面确认为关键页。然后解析单元32根据预设的规则将标记解析出来,得到第二合同页码。匹配单元33读取到关键页第二合同页码后,将至少一个第二合同页码分别与至少一个第一合同页码匹配。比如解析单元32解析出第一个关键页的第二合同页码是1,第二个关键页的第二合同页码是2。匹配单元33读取合同模版,读取到第一个合同扫描页的第一合同页码是1,第二个合同扫描页的第二合同页码是2,匹配单元33就将第一个合同扫描页与第一个关键页匹配,将第二个合同扫描页与第二个关键页匹配。匹配成功后,替换单元34将关键页从合同模版中删除,同时将与关键页匹配的合同扫描页插入到关键页的位置,实现合同扫描页替换了关键页。生成单元35生成电子合同文档。In this embodiment, when the system administrator makes the contract template, the key page in the contract template is distinguished from the fixed page, and the key page is marked. For example, the page numbers of the above key page templates are one, two, and seven. Set the page numbers to one, two, and seven as the key page marks. When the search unit 31 finds the marks whose page numbers are "one", "two", and "seven", it determines that the page is a key page. In another specific embodiment of the solution, the system administrator adds different watermark marks to the key pages, the corresponding system searches for the watermark marks in the contract template, and confirms the pages with the watermark marks as the key pages. Then, the parsing unit 32 parses the mark out according to a preset rule to obtain a second contract page number. After the matching unit 33 reads the second contract page number of the key page, it matches at least one second contract page number with at least one first contract page number, respectively. For example, the parsing unit 32 parses out 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, reads that the first contract page number of the first contract scan page is 1, the second contract page number of the second contract scan page is 2, and the matching unit 33 copies the first contract scan page Matches the first key page, matches the second contract scan page with the second key page. After the matching is successful, the replacement unit 34 deletes the key page from the contract template, and inserts the contract scan page matching the key page into the position of the key page, so that the contract scan page replaces the key page. The generating unit 35 generates an electronic contract document.
在另一具体实施例中,查找单元31查找到三个预设标记,解析单元32解析后生成三个第二合同页码分别是1、2、7,获取的三个合同扫描页的三个第一合同页码分别是1、2、3。匹配单元33具体匹配方法是:则根据页码的排行顺序进行匹配,将第二合同页码为1的关键页与第一合同页码为1的合同扫描页进行匹配;将第二合同页码为2的关键页与第一合同页码为2的合同扫描页进行匹配;将第二合同页码为7的关键页与第一合同页码为3的合同扫描页进行匹配。In another specific embodiment, the searching unit 31 finds three preset marks, and the parsing unit 32 generates three second contract page numbers after parsing, which are 1, 2, and 7, and obtains three third contract page pages. The page numbers of a contract are 1, 2, and 3, respectively. The specific matching method of the matching unit 33 is: according to the ranking order of the page numbers, matching the key page with the second contract page number 1 and the contract scan page with the first contract page number 1; the key with the second contract page number 2 The page is matched with the contract scan page with the first contract page number 2; the key page with the second contract page number 7 is matched with the contract scan page with the first contract page number 3.
进一步地,上述合同备案装置还包括:Further, the above-mentioned contract filing device further includes:
扫描模块4,用于扫描电子合同文档,判断是否有预设标记;A scanning module 4 for scanning an electronic contract document to determine whether there is a preset mark;
第一提示模块5,用于若电子合同文档有预设标记,发出预设的第一提示信号。The first prompting module 5 is configured to send a preset first prompting signal if the electronic contract document has a preset mark.
本实施例中,形成了电子合同文档后,扫描模块4再将电子合同文档进行扫描,看电子合同文档中是否还有关键页的预设标记。因为关键页面中均是有需要填写交易信息的页面,如果电子合同文档中还有关键页,说明合同是不完整的。通过查找电子合同文档中是否有预设标记,进而判断电子合同文档中是否还有关键页,从而判断电子合同文档是否是完整的。如果扫描后发现电子合同文档中还有预设标记,说明还有关键页没有被替换掉,说明电子合同文档是不完整的,因此,第一提示模块5发出第一提示信号,提醒工作人员对该电子合同文档错误或不完整,需要重新备案。第一提示信号包括系统生成的对话框提示工作人员,也可以是控制LED灯闪烁提醒工作人员,也可以是控制蜂鸣器发出相应的声音提醒工作人员。In this embodiment, after the electronic contract document is formed, the scanning module 4 scans the electronic contract document to see if there are any preset marks of key pages in the electronic contract document. Because the key pages are all pages that need to fill in transaction information, if there are key pages in the electronic contract document, it means that the contract is incomplete. By finding whether there is a preset mark in the electronic contract document, and then determining whether there is a key page in the electronic contract document, it is determined whether the electronic contract document is complete. If after scanning, it is found that there are preset marks in the electronic contract document, indicating that key pages have not been replaced, indicating that the electronic contract document is incomplete, therefore, the first reminder module 5 sends a first reminder signal to remind the staff to The electronic contract document is incorrect or incomplete and needs to be re-filed. The first prompt signal includes a dialog box generated by the system to prompt the staff, or it may be to control the blinking of the LED light to remind the staff, or it may be to control the buzzer to send a corresponding sound to remind the staff.
参照图7,进一步地,上述生成单元35包括:Referring to FIG. 7, the generating unit 35 further includes:
发送子单元351,用于发送替换后的合同模版至后台;A sending subunit 351, configured to send the replaced contract template to the background;
生成子单元352,用于接收到确认指令后,生成电子合同文档。The generating subunit 352 is configured to generate an electronic contract document after receiving the confirmation instruction.
本实施例中,将合同扫描页替换了合同模版中的关键页后,发送子单元351将替换后的合同模版发送给工作人员使用的界面端进行展示,工作人员使用的界面端即后台,使工作人员对即将生成的电子合同浏览确认。工作人员确认后通过后台发送确认指令给系统,生成子单元352接收到后台发来的确认指令后,将插入影像资料以及删除关键页模版后的合同模版整合成新的文档,生成电子合同文档。In this embodiment, after the contract scan page replaces the key page in the contract template, the sending subunit 351 sends the replaced contract template to the interface used by the staff for display, and the interface used by the staff is the background, so that The staff browses and confirms the electronic contract to be generated. After confirmation, the staff sends a confirmation instruction to the system through the background. After receiving the confirmation instruction from the background, the generating subunit 352 integrates the contract template after inserting the image data and deleting the key page template into a new document to generate an electronic contract document.
参照图8,进一步地,上述合同备案装置还包括:Referring to FIG. 8, further, the above-mentioned contract filing device further includes:
第二获取模块6,用于获取所述合同模版中关键页的数量;A second acquisition module 6 configured to acquire the number of key pages in the contract template;
判断模块7,用于判断所述合同扫描页的页面数量是否与所述关键页的数量一致;A judging module 7 for judging whether the number of pages of the contract scan page is consistent with the number of the key pages;
第二提示模块8,用于若所述合同扫描页的页面数量是否与所述关键页的数量不一致,发出预设的第二提示信号。A second prompting module 8 is configured to send a preset second prompting signal if the number of pages of the contract scan page is inconsistent with the number of key pages.
本实施例中,合同模版中的关键页必须全部被替换出去,整个合同里的信息才是完整的。如果有合同扫描页和关键页的数量不一致,说明有的关键页没有被替换掉,对应的生成的电子合同文档是不完整的。第二获取模块6获取合同模版中关键页的数量,是通过获取合同模版中的标记数量来获取的,因每个关键页中均有一个标记,因此标记数量与关键页的数量是相同的。判断模块7判断合同扫描页的数量与关键页的数量是否一致,即比较两个数量的数值是否一致。如果两个数值不一致,说明合同中有关键页没有替换,或者是有替换错误,使得生成的电子合同文档是不完整或者是错误的。因此,第二提示模块8发出第二提示信号。第二提示信号与第一提示信号可以是相同的,包括系统生成的对话框提示工作人员,也可以是控制LED灯闪烁提醒工作人员,也可以是控制蜂鸣器发出相应的声音提醒工作人员。In this embodiment, all the key pages in the contract template must be replaced, and the information in the entire contract is complete. If there are inconsistent numbers of contract scan pages and key pages, it means that some key pages have not been replaced and the corresponding generated electronic contract documents are incomplete. The second acquisition module 6 acquires the number of key pages in the contract template by acquiring the number of marks in the contract template. Since each key page has a mark, the number of marks is the same as the number of key pages. The judging module 7 judges whether the number of contract scanned pages is consistent with the number of key pages, that is, compares whether the values of the two numbers are consistent. If the two values are not the same, it means that there is no replacement of the key page in the contract, or there is a replacement error, so that the generated electronic contract document is incomplete or incorrect. Therefore, the second prompting module 8 issues a second prompting signal. The second prompt signal and the first prompt signal may be the same, including a dialog box generated by the system to prompt the staff, or to control the blinking of the LED light to remind the staff, or to control the buzzer to emit a corresponding sound to remind the staff.
进一步地,上述合同模版为文本文档,上述合同备案装置还包括:Further, the above contract template is a text document, and the above contract filing device further includes:
识别模块,用于读取所述合同模版,识别文本中的空格和/或回车标签;An identification module, configured to read the contract template and identify spaces and / or carriage return tags in the text;
设置模块,用于当所述空格和/或回车标签连续超过一定数量,设置所述空格和/或回车标签所在的页面为所述关键页。A setting module, configured to set the page on which the space and / or carriage return tag is located as the key page when the space and / or carriage return tag continuously exceeds a certain number.
本实施例中,合同模版的形式为文本格式,文本格式中对需要填写信息的位置都是需要留下空白,而需要填写信息的位置都是关键页,因此,识别模块通过识别合同模版中的空白处来判断关键页。在制作文本时,通过输入空格命令或回车命令留下空格标签或回车标签从而生成空白位置,或者,在输入空格命令时加入下划线指令,对应的文本中有空白位置。识别模块读取合同模版,将所有的页面浏览一遍,识别出文本是空格标签、回车标签或者空格标签加下划线,判定这一位置是空白。识别模块识别出了文本中的空白位置后,进一步的设置模块判断这个空白位置是否是用于填写交易信息的位置,用于填写信息的位置需要有一定空间,不能太小,因而当空格标签和/或回车标签连续超过一定数量,比如连续有20个空格标签或3个回车标签,设置模块就判定这个空白位置是要填写一些交易信息,进而,设置该空白位置所在的页面是关键页。In this embodiment, the form of the contract template is a text format. In the text format, the place where information needs to be filled in is left blank, and the place where information needs to be filled out is a key page. Therefore, the identification module identifies the Blank space to judge key pages. When making text, enter a space command or a carriage return command to leave a space label or a carriage return label to generate a blank space, or add an underline instruction when entering a space command, and there is a blank space in the corresponding text. The recognition module reads the contract template, browses all the pages, and recognizes that the text is a space tag, a carriage return tag, or a space tag underlined, and determines that this position is blank. After the recognition module recognizes the blank space in the text, the further setting module judges whether the blank space is used to fill in the transaction information. The location for filling in the information needs a certain space, and cannot be too small. Therefore, when the space label and / Or the carriage return tag exceeds a certain number in a row, for example, there are 20 space tags or 3 carriage return tags in a row, the setting module determines that the blank position is to fill in some transaction information, and further, the page where the blank position is set is a key page .
综上所述,本申请的合同备案装置,将完整合同的关键页进行扫描后形成合同扫描件,然后将该合同扫描件与该合同对应原合同模版中的关键页进行替换,即可以形成合同的电子合同文档,完成合同备案。利用该方法进行合同备案时,工作人员只需扫描合同的关键页即可,不用将合同的全部都进行扫描,减少工作人员的工作量,尤其是在对大量的合同进行备案时,更是减少工作人员的工作量,加快了批量合同备案的速度。In summary, the contract filing device of this application scans the key pages of the complete contract to form a scanned copy of the contract, and then replaces the scanned copy of the contract with the key page in the original contract template corresponding to the contract to form a contract. Electronic contract documents, complete contract filing. When using this method to record a contract, the staff only needs to scan the key pages of the contract. Instead of scanning all the contracts, the staff's workload is reduced, especially when a large number of contracts are recorded. The workload of the staff has speeded up the filing of batch contracts.
参照图9,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储合同模版、关键页、固定页等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令在执行时,执行如上述各方法的实施例的流程。本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Referring to FIG. 9, an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the computer design processor 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, computer-readable instructions, and a database. The memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium. The computer equipment database is used to store data such as contract templates, key pages, and fixed pages. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed, the processes of the embodiments of the methods described above are executed. Those skilled in the art can understand that the structure shown in FIG. 9 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 equipment to which the solution of the present application is applied.
本申请一实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,该计算机可读指令在执行时,执行如上述各方法的实施例的流程。以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。An embodiment of the present application further provides a computer non-volatile readable storage medium having computer readable instructions stored thereon. When the computer readable instructions are executed, the processes of the embodiments of the methods described above are executed. The above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the description of the application and the drawings, or directly or indirectly used in other related The technical fields are equally included in the patent protection scope of this application.

Claims (20)

  1. 一种合同备案方法,其特征在于,包括步骤:A contract filing method is characterized in that it includes steps:
    接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;Receiving the uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
    获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;Obtaining 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;
    当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。When the first contract page number matches the second contract page number, replacing the key page with the contract scan page to generate an electronic contract document.
  2. 如权利要求1所述的合同备案方法,其特征在于,所述关键页中包含有预设标记,所述当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档的步骤包括:The contract 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 Replaced by the contract scan page, the steps of generating an electronic contract document include:
    查找所述预设标记;Find the preset mark;
    解析所述预设标记,生成所述第二合同页码;Parse 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 scan page corresponding to the first contract page number with the key page corresponding to the second contract page number;
    生成电子合同文档。Generate electronic contract documents.
  3. 如权利要求2所述的合同备案方法,其特征在于,所述生成电子合同文档的步骤之后,包括:The contract filing method according to claim 2, wherein after the step of generating an electronic contract document, the method comprises:
    扫描电子合同文档,判断是否有预设标记;Scan electronic contract documents to determine if there are preset marks;
    若是,发出预设的第一提示信号。If yes, a preset first prompt signal is issued.
  4. 如权利要求2所述的合同备案方法,其特征在于,所述生成电子合同文档的步骤,包括:The contract filing method according to claim 2, wherein the step of generating an electronic contract document comprises:
    发送替换后的合同模版至后台;Send the replaced contract template to the background;
    接收到确认指令后,生成电子合同文档。After receiving the confirmation instruction, an electronic contract document is generated.
  5. 如权利要求1所述的合同备案方法,其特征在于,所述生成电子合同文档的步骤之后包括:The contract filing method according to claim 1, wherein after the step of generating an electronic contract document comprises:
    获取所述合同模版中关键页的数量;Obtaining the number of key pages in the contract template;
    判断所述合同扫描页的页面数量是否与所述关键页的数量一致;Determine whether the number of pages of the contract scan page is consistent with the number of key pages;
    若否,发出预设的第二提示信号。If not, a preset second prompt signal is issued.
  6. 如权利要求1所述的合同备案方法,其特征在于,所述合同模版为文本文档,设置所述关键页的方法包括:The method of claim 1, wherein the contract template is a text document, and a method for setting the key page comprises:
    读取所述合同模版,识别文本中的空格和/或回车标签;Reading the contract template, identifying spaces and / or carriage return tags in the text;
    当所述空格和/或回车标签连续超过一定数量,设置所述空格和/或回车标签所在的页面为所述关键页。When the space and / or carriage return tag continuously exceeds a certain number, the page on which the space and / or carriage return tag is located is set as the key page.
  7. 一种合同备案装置,其特征在于,包括:A contract filing device, comprising:
    接收模块,用于接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;A receiving module, configured to receive an uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
    获取模块,用于获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;An obtaining module, 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;
    生成模块,用于当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。A generating module is configured to replace the key page with the contract scan page when the first contract page number matches the second contract page number to generate an electronic contract document.
  8. 如权利要求7所述的合同备案装置,其特征在于,所述生成模块包括:The contract filing device according to claim 7, wherein the generating module comprises:
    查找单元,用于查找所述预设标记;A searching unit, configured to search the preset mark;
    解析单元,用于解析所述预设标记,生成所述第二合同页码;An analysis unit, configured to parse the preset mark to generate the second contract page number;
    匹配单元,用于将所述第一合同页码与所述第二合同页码匹配;A matching unit, configured to match the first contract page number with the second contract page number;
    替换单元,用于若匹配成功,将所述第一合同页码对应的合同扫描页替换为所述第二合同页码对应的关键页;A replacement unit, configured to replace the contract scan page corresponding to the first contract page number with a key page corresponding to the second contract page number if the matching is successful;
    生成单元,用于生成电子合同文档。A generating unit for generating an electronic contract document.
  9. 如权利要求8所述的合同备案装置,其特征在于,所述合同备案装置还包括:The contract filing device according to claim 8, wherein the contract filing device further comprises:
    扫描模块,用于扫描电子合同文档,判断是否有预设标记;A scanning module for scanning electronic contract documents to determine whether there are preset marks;
    第一提示模块,用于若电子合同文档有预设标记,发出预设的第一提示信号。The first prompting module is configured to send a preset first prompting signal if the electronic contract document has a preset mark.
  10. 如权利要求8所述的合同备案装置,其特征在于,所述生成单元包括:The contract filing device according to claim 8, wherein the generating unit comprises:
    发送子单元,用于发送替换后的合同模版至后台;A sending sub-unit for sending the replaced contract template to the background;
    生成子单元,用于接收到确认指令后,生成电子合同文档。The generating subunit is configured to generate an electronic contract document after receiving the confirmation instruction.
  11. 如权利要求7所述的合同备案装置,其特征在于,所述合同备案装置还包括:The contract filing device according to claim 7, wherein the contract filing device further comprises:
    第二获取模块,用于获取所述合同模版中关键页的数量;A second acquisition module, configured to acquire the number of key pages in the contract template;
    判断模块,用于判断所述合同扫描页的页面数量是否与所述关键页的数量一致;A judging module, configured to judge whether the number of pages of the contract scan page is consistent with the number of key pages;
    第二提示模块,用于若所述合同扫描页的页面数量是否与所述关键页的数量不一致,发出预设的第二提示信号。A second prompting module is configured to send a preset second prompting signal if the number of pages of the contract scan page is inconsistent with the number of the key pages.
  12. 如权利要求7所述的合同备案装置,其特征在于,所述合同模版为文本文档,所述合同备案装置还包括:The contract filing device according to claim 7, wherein the contract template is a text document, and the contract filing device further comprises:
    识别模块,用于读取所述合同模版,识别文本中的空格和/或回车标签;An identification module, configured to read the contract template and identify spaces and / or carriage return tags in the text;
    设置模块,用于当所述空格和/或回车标签连续超过一定数量,设置所述空格和/或回车标签所在的页面为所述关键页。A setting module, configured to set the page on which the space and / or carriage return tag is located as the key page when the space and / or carriage return tag continuously exceeds a certain number.
  13. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现合同备案方法,该合同备案方法,包括:A computer device includes a memory and a processor. The memory stores computer-readable instructions, and is characterized in that the processor implements a contract filing method when the processor executes the computer-readable instructions. The contract filing method includes:
    接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;Receiving the uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
    获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;Obtaining 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;
    当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。When the first contract page number matches the second contract page number, replacing the key page with the contract scan page to generate an electronic contract document.
  14. 如权利要求13所述的计算机设备,其特征在于,所述关键页中包含有预设标记,所述当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档的步骤包括:The computer device according to claim 13, 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 Scanning the page for the contract, the steps of generating an electronic contract document include:
    查找所述预设标记;Find the preset mark;
    解析所述预设标记,生成所述第二合同页码;Parse 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 scan page corresponding to the first contract page number with the key page corresponding to the second contract page number;
    生成电子合同文档。Generate electronic contract documents.
  15. 如权利要求14所述的计算机设备,其特征在于,所述生成电子合同文档的步骤之后,包括:The computer device according to claim 14, wherein after the step of generating the electronic contract document, comprises:
    扫描电子合同文档,判断是否有预设标记;Scan electronic contract documents to determine if there are preset marks;
    若是,发出预设的第一提示信号。If yes, a preset first prompt signal is issued.
  16. 如权利要求14所述的计算机设备,其特征在于,所述生成电子合同文档的步骤,包括:The computer device according to claim 14, wherein the step of generating an electronic contract document comprises:
    发送替换后的合同模版至后台;Send the replaced contract template to the background;
    接收到确认指令后,生成电子合同文档。After receiving the confirmation instruction, an electronic contract document is generated.
  17. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现合同备案方法,该合同备案方法,包括:A computer nonvolatile readable storage medium having computer readable instructions stored thereon, characterized in that when the computer readable instructions are executed by a processor, a contract filing method is implemented, and the contract filing method includes:
    接收上传的合同扫描页,所述合同扫描页包括所述合同扫描页对应的第一合同页码;Receiving the uploaded contract scan page, where the contract scan page includes a first contract page number corresponding to the contract scan page;
    获取预设的合同模版,所述合同模版中包括至少一页关键页,所述关键页包括所述关键页对应的第二合同页码;Obtaining 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;
    当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档。When the first contract page number matches the second contract page number, replacing the key page with the contract scan page to generate an electronic contract document.
  18. 如权利要求17所述的计算机非易失性可读存储介质,其特征在于,所述关键页中包含有预设标记,所述当所述第一合同页码与所述第二合同页码匹配时,将所述关键页替换为所述合同扫描页,生成电子合同文档的步骤包括:The computer non-volatile readable storage medium according to claim 17, wherein the key page includes a preset mark, and when the first contract page number matches the second contract page number Replacing the key page with the contract scan page, and generating the electronic contract document includes:
    查找所述预设标记;Find the preset mark;
    解析所述预设标记,生成所述第二合同页码;Parse 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 scan page corresponding to the first contract page number with the key page corresponding to the second contract page number;
    生成电子合同文档。Generate electronic contract documents.
  19. 如权利要求18所述的计算机非易失性可读存储介质,其特征在于,所述生成电子合同文档的步骤之后,包括:The computer non-volatile readable storage medium according to claim 18, wherein after the step of generating the electronic contract document, comprises:
    扫描电子合同文档,判断是否有预设标记;Scan electronic contract documents to determine if there are preset marks;
    若是,发出预设的第一提示信号。If yes, a preset first prompt signal is issued.
  20. 如权利要求18所述的计算机非易失性可读存储介质,其特征在于,所述生成电子合同文档的步骤,包括:The computer non-volatile readable storage medium of claim 18, wherein the step of generating an electronic contract document comprises:
    发送替换后的合同模版至后台;Send the replaced contract template to the background;
    接收到确认指令后,生成电子合同文档。After receiving the confirmation instruction, an electronic contract document is generated.
PCT/CN2018/094886 2018-05-23 2018-07-06 Contract recordation method and apparatus, and computer device and storage medium WO2019223073A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2019223073A1 true WO2019223073A1 (en) 2019-11-28

Family

ID=64343169

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241625A (en) * 2020-10-30 2021-01-19 卓尔购信息科技(武汉)有限公司 Method and system for automatically generating contract document based on java language

Families Citing this family (2)

* 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
CN112540965B (en) * 2020-12-07 2023-07-25 湖北航天信息技术有限公司 Paper contract management method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095338A1 (en) * 2012-09-28 2014-04-03 Oracle International Corporation Multi-source configurator content processing for terms and conditions document to contract creation
CN105787626A (en) * 2014-12-25 2016-07-20 远光软件股份有限公司 Contract management method and contract management system
CN106980605A (en) * 2017-02-17 2017-07-25 平安科技(深圳)有限公司 Contract generation method and device
CN107578221A (en) * 2017-09-30 2018-01-12 广州市壹软网络科技有限公司 Contract approval method, contract approval system, and computer-readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003198A (en) * 2008-06-23 2010-01-07 Fuji Xerox Co Ltd Document management system, document management device, and program
CN101350009B (en) * 2008-09-05 2010-06-30 中国工商银行股份有限公司 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
CN103389969B (en) * 2012-05-07 2016-02-24 腾讯科技(深圳)有限公司 A kind of methods, devices and systems for mobile terminal preview pdf document
CN104077162B (en) * 2014-06-30 2017-12-26 北京奇虎科技有限公司 Renewal, dissemination method and the device of mobile terminal application template
CN106484663B (en) * 2016-10-12 2019-05-03 天闻数媒科技(湖南)有限公司 A kind of extracting method and device of document content
CN107247722B (en) * 2017-04-25 2020-11-06 北京金山安全软件有限公司 File scanning method and device and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095338A1 (en) * 2012-09-28 2014-04-03 Oracle International Corporation Multi-source configurator content processing for terms and conditions document to contract creation
CN105787626A (en) * 2014-12-25 2016-07-20 远光软件股份有限公司 Contract management method and contract management system
CN106980605A (en) * 2017-02-17 2017-07-25 平安科技(深圳)有限公司 Contract generation method and device
CN107578221A (en) * 2017-09-30 2018-01-12 广州市壹软网络科技有限公司 Contract approval method, contract approval system, and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241625A (en) * 2020-10-30 2021-01-19 卓尔购信息科技(武汉)有限公司 Method and system for automatically generating contract document based on java language

Also Published As

Publication number Publication date
CN108897727B (en) 2021-09-14
CN108897727A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US11176518B2 (en) Systems, methods and apparatus for form building
JP4719543B2 (en) Workflow system, server device, processing method of workflow system, and workflow program
US9002838B2 (en) Distributed capture system for use with a legacy enterprise content management system
CN109598228B (en) Method and system for electronically recording and archiving paper files
JP2008276766A (en) Form automatic filling method and device
US20080030800A1 (en) Electronic document management system
WO2019223073A1 (en) Contract recordation method and apparatus, and computer device and storage medium
US8589786B2 (en) Trademark report with store layout diagram
US6718351B2 (en) Electronic record storage
US20150213460A1 (en) Continuing-education certificate validation
JP2016092533A (en) Image processing system, management system, image processing device, calibrated original generation method, and program
CN112487490A (en) Tamper recognition method, device, and medium
EP1341106A1 (en) Data check supporting server
JP6786658B2 (en) Document reading system
US7885920B2 (en) System for managing the property of research and development
CN113326010A (en) Error question printing method and device and computer equipment
US20150227690A1 (en) System and method to facilitate patient on-boarding
US20180032286A1 (en) Form document submission system with error finder module
US20160259957A1 (en) System And Method For Monitoring And Protecting Healthcare Data
CN208421849U (en) Paper document tamper resistant systems
WO2019210573A1 (en) Method and apparatus for generating electronic order, and computer device and storage medium
JP7086424B1 (en) Patent text generator, patent text generator, and patent text generator
JP7377565B2 (en) Drawing search device, drawing database construction device, drawing search system, drawing search method, and program
US11698763B2 (en) Information processing apparatus for registered files and issuing identification information for tracking an evaluation of a user using the files
US20230289515A1 (en) Methods and systems for adding annotations from a printed version of a document to a digital version of the document

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18920185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18920185

Country of ref document: EP

Kind code of ref document: A1