Contract numbering method and device, storage medium and terminal equipment
By introducing unique modes and shared modes into the contract numbering rule tree, the complex and inflexible contract numbering management process is solved, and the flexible configuration and efficient application of contract numbering rules is realized, the management efficiency and accuracy are improved, and the group is adapted to Changeable application scenarios for enterprises.
Patent Information
- Application Number
- CN202411038853.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-29
Smart Images

Figure CN119048294A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of contract management, and in particular to a contract numbering method, apparatus, storage medium and terminal device. Background Art
[0002] As the scale of group business continues to expand, contract management faces unprecedented challenges, especially the surge in the number of contracts, which makes the generation and management of contract numbers a key link. Given that the group is composed of diversified business entities, each with different business characteristics and needs, users have to independently configure corresponding numbering rules for each business entity. This process is not only cumbersome and time-consuming, but also greatly increases management costs.
[0003] What is more complicated is that the current mapping relationship between business entities and numbering rules is relatively rigid and lacks flexibility, making it difficult to adapt to the complex and changing application scenarios that emerge in the rapid development of enterprises. This limitation not only limits the efficiency and accuracy of contract management, but may also affect the smoothness and responsiveness of the overall operation process of the enterprise.
[0004] Therefore, there is an urgent need to explore and implement a more efficient and flexible contract numbering management mechanism to achieve customized configuration and dynamic adjustment of numbering rules for different business entities, thereby optimizing the contract management process, improving enterprise management efficiency, and better supporting the long-term development of group enterprises. Summary of the invention
[0005] The embodiments of the present application provide a contract numbering method, apparatus, storage medium and terminal device, which can solve the problem of complex and inflexible configuration operation of generating contract numbers in the prior art. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for numbering a contract, the method comprising:
[0007] Get the attribute information of the target contract;
[0008] Traversing a target node matching the attribute information of the target contract in a preset contract number rule tree; the contract number rule tree is divided into multiple layers, each layer includes one or more nodes, each node is associated with attribute information, a mode and a number rule, the attribute information includes one or more of a signing unit, a contract classification and a contract nature, and the mode is divided into a unique mode and a shared mode;
[0009] Parsing the mode of the target node according to the query result;
[0010] If the mode of the target node is a unique mode, number the target contract according to the numbering rule of the target node;
[0011] If the mode of the target node is a shared mode, the contract numbering rule tree is searched upwards level by level according to the position of the target node. When the parent node of the unique mode is found, the target contract is numbered according to the numbering rule of the parent node.
[0012] 2. The method according to claim 1 is characterized in that the numbering rules include: unit number, contract classification number, contract nature number and serial number.
[0013] In a second aspect, an embodiment of the present application provides a contract numbering device, the device comprising:
[0014] An acquisition unit, used for acquiring attribute information of a target contract;
[0015] A traversal unit, configured to traverse a target node matching the attribute information of the target contract in a preset contract number rule tree; the contract number rule tree is divided into a plurality of layers, each layer includes one or more nodes, each node is associated with attribute information, a mode and a numbering rule, the attribute information includes one or more of a signing unit, a contract classification and a contract nature, and the mode is divided into a unique mode and a shared mode;
[0016] A query unit, used for parsing the mode of the target node according to the query result;
[0017] a numbering unit, configured to number the target contract according to a numbering rule of the target node if the mode of the target node is a unique mode;
[0018] The numbering unit is also used to search upwards level by level in the contract numbering rule tree according to the position of the target node if the mode of the target node is a shared mode. When the upper node of the unique mode is found, the target contract is numbered according to the numbering rule of the upper node.
[0019] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0020] In a fourth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0021] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0022] By building a contract numbering rule tree and introducing the concepts of unique mode and shared mode, flexible configuration and efficient application of contract numbering rules are achieved. Its advantages are reduced configuration workload, improved flexibility, support for multiple application scenarios, improved numbering accuracy and optimized management processes, providing strong technical support for contract management of group enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;
[0025] Figure 2 It is a flowchart of the contract numbering method provided in the embodiment of the present application;
[0026] Figure 3 It is a structural schematic diagram of a contract numbering device provided by this application;
[0027] Figure 4 It is a structural schematic diagram of a terminal device provided by this application. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0029] It should be noted that the contract numbering method provided in this application is generally executed by a terminal device, and accordingly, the contract numbering device is generally set in the terminal device.
[0030] Figure 1 An exemplary system architecture of a contract numbering method or a contract numbering device that can be applied to the present application is shown.
[0031] like Figure 1 As shown, the system architecture may include: a terminal device 101 and a server 102. The terminal device 101 and the server 102 may communicate via a network, and the network is used as a medium for providing communication links between the above-mentioned units. The network may include various types of wired communication links or wireless communication links, for example: a wired communication link includes an optical fiber, a twisted pair or a coaxial cable, etc., and a wireless communication link includes a Bluetooth communication link, a wireless fidelity (WIreless-FIdelity, Wi-Fi) communication link or a microwave communication link, etc.
[0032] The server 102 stores the contract data, and the terminal device 101 can obtain the target contract from the server 102 and automatically number the target contract.
[0033] It should be noted that the terminal device 101 and the server 102 can be hardware or software. When the terminal device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the terminal device 101 and the server 102 are software, they can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module, which is not specifically limited here.
[0034] Various communication client applications can be installed on the terminal device of the present application, such as: video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0035] The terminal device can be hardware or software. When the terminal device is hardware, it can be various terminal devices with a display screen, including but not limited to smart phones, tablet computers, laptops, and desktop computers. When the terminal device is software, it can be installed in the terminal devices listed above. It can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
[0036] When the terminal device is hardware, a display device and a camera may be installed thereon. The display device may be any device capable of realizing a display function, and the camera is used to collect video streams; for example, the display device may be a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), etc. The user may use the display device on the terminal device to view displayed text, pictures, videos and other information.
[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be used as required.
[0038] The following will be combined with the attached Figure 2, the contract numbering method provided in the embodiment of the present application is described in detail. Among them, the contract numbering device in the embodiment of the present application can be Figure 1 The terminal device shown.
[0039] See also Figure 2 , a flow chart of a contract numbering method is provided for the embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0040] S201. Obtain attribute information of the target contract.
[0041] The user inputs the attribute information of the target contract through the user interface of the terminal device (such as a touch screen, keyboard, etc.), or transmits the attribute information to the terminal device by file import, document scanning, etc. The application on the terminal device uses a built-in or third-party library to parse the input data, convert it into a format that the program can process (such as a dictionary, object, etc.), and extract key attribute information such as the signing unit, contract classification, and contract nature. The parsed attribute information is stored in the memory of the terminal device, or written into a local database or file system as needed for use in subsequent steps.
[0042] S202. Traverse the target node matching the attribute information of the target contract in the preset contract number rule tree.
[0043] The contract numbering rule tree is divided into multiple layers, each layer includes one or more nodes, each node is associated with attribute information, mode and numbering rules, attribute information includes one or more of the signing unit, contract classification and contract nature, and mode is divided into unique mode and shared mode. Contract classification includes:
[0044] Among them, the terminal device loads a preset contract number rule tree from a local database, a file system or a remote server. The rule tree is stored in memory in a data structure suitable for processing by the terminal device (such as a tree data structure, a hash table plus a list, etc.). The terminal device loads a traversal algorithm, which can be a depth-first search algorithm or a breadth-first search algorithm or other algorithms, etc., which traverses the nodes of the rule tree and compares the attribute information of the target contract with the attribute information of each node. The comparison process may involve logic such as string matching, fuzzy search, and condition combination judgment. Since the rule tree is multi-layered, the matching process may need to be performed recursively. For each node, if its attribute information does not completely match the target contract, continue to query its child nodes. When a node that completely matches the attribute information of the target contract is found, the node is returned as the target node. If no completely matching node is found, it is decided whether to return the closest match or report an error based on business needs.
[0045] In some embodiments of the present application, the numbering rules include: unit number, contract classification number, contract nature number and serial number.
[0046] Among them, the unit number is used to identify the department or unit to which the contract belongs. This can be the pinyin abbreviation of the department name or the unique identifier of the unit in the system. The introduction of the unit number helps to quickly locate the responsible department or unit of the contract. The contract classification number is used to distinguish different types of contracts. This can be divided according to the specific needs of the organization, such as procurement contracts, sales contracts, lease contracts, labor contracts, etc. Each type of contract will have a corresponding classification number so that it can be quickly screened and classified when needed. The contract nature number is used to further describe the nature or characteristics of the contract. For example, a sales contract can be further subdivided into long-term sales contracts, short-term sales contracts, exclusive sales contracts, etc. This number can help organizations manage different types of contracts more accurately and take corresponding processing measures according to their nature. The serial number is a continuous sequence of numbers used to distinguish different contracts under the same unit, the same classification, and the same nature. Whenever a new contract is created, the serial number will increase to ensure that each contract has a unique number.
[0047] In some embodiments of the present application, before obtaining the attribute information of the target contract, the method further includes:
[0048] The target contract is integrity checked and the verification result is passed.
[0049] The integrity verification process may include the following aspects:
[0050] Field completeness check: Verify that all required fields in the contract are filled in and not omitted. Check whether the fields are filled in in the required format or range, such as date format, amount format, number range, etc.
[0051] Attachment integrity check: If the contract contains necessary attachments (such as contract attachments, pictures, documents, etc.), verify whether these attachments have been uploaded or included in the contract. Check whether the naming, format and size of the attachments meet the specified requirements.
[0052] Signature and seal verification: If the contract requires a signature or seal, verify whether the signature and seal are authentic and valid. Check the location, clarity, and consistency of the signature and seal.
[0053] Logical consistency check: Verify whether there are logical contradictions or inconsistencies between the various clauses in the contract. Check whether the key information such as the amount, quantity, date, etc. in the contract matches and is consistent with each other.
[0054] Compliance check: Verify whether the contract content complies with the requirements of relevant laws, regulations, policies or industry standards. Check whether the contract contains any illegal, unlawful or unethical clauses.
[0055] Version control check: If multiple versions of the contract exist, verify the integrity and update records of the current version. Check for unauthorized modifications or deletions and ensure that all changes have been properly approved and recorded.
[0056] The verification result is to show that the target contract meets the specified requirements in terms of content and structure, and is valid and executable. Through integrity verification, potential risks caused by incomplete contract content, format errors or illegal clauses can be reduced. The verification process can be automated or semi-automated to improve the efficiency and accuracy of contract processing.
[0057] In some embodiments of the present application, the step of obtaining the attribute information of the target contract includes:
[0058] When it is detected that the target contract is finalized, obtaining attribute information of the target contract; or
[0059] When it is detected that the target contract takes effect, the attribute information of the target contract is obtained.
[0060] Among them, based on the finalization trigger process: the application on the terminal device (such as the contract management system) will continuously monitor the status of the target contract. This is usually achieved by querying the database, calling the API interface, or monitoring the file system changes.
[0061] When the contract status changes from "draft" or "under revision" to "final", the application captures this state change. Once the contract is detected to be finalized, the application triggers an event (such as a message in a message queue, an internal function call, etc.) to start the process of obtaining attribute information. The application retrieves the contract details from the database based on the contract's unique identifier (such as the contract ID). If the contract information is stored in the form of a file (such as a PDF, Word document), it may be necessary to use OCR technology or a parsing library in a specific format to extract the text content. During the extraction process, the focus is on those fields defined as attribute information, such as contract number, signing date, contracting party name, etc. The extracted attribute information will go through a series of validation steps to ensure its accuracy and completeness. This may include format validation, scope validation, and logical consistency checks. The attribute information that passes the validation will be stored in the database or file system for subsequent use. The terminal device may send a notification to the user to inform that the contract has been finalized and the attribute information has been successfully obtained. At the same time, the application may update the user interface to reflect the latest contract status and information.
[0062] Process based on effectiveness trigger: The application continues to monitor the contract status and captures the change when the contract changes from "pending effectiveness" or similar status to "effective". Trigger the corresponding event to start the process of obtaining the attribute information of the effective contract. Extract the attribute information of the contract and verify it. If any modifications are made to the contract before it takes effect, you need to ensure that the latest attribute information is obtained. It may also be necessary to verify that the conditions for the effectiveness of the contract have been met (such as payment vouchers, government approval documents, etc.). For some types of contracts, additional operations may need to be performed when it takes effect, such as sending email notifications, updating financial systems, etc. Store the verified attribute information in the database and send a notification to the user
[0063] S203: Analyze the pattern of the target node according to the query result.
[0064] The terminal device extracts the mode information (unique mode or shared mode) from the data structure of the target node. This is usually achieved by accessing a certain attribute or field of the node. Based on the extracted mode information, it can be determined whether the mode of the target node is a unique mode by a simple conditional judgment statement (such as if-else).
[0065] S204: If the mode of the target node is a unique mode, number the target contract according to the numbering rule of the target node.
[0066] Among them, the numbering rule is extracted from the data structure of the target node. The numbering rule may be a string template containing placeholders, or it may be a more complex function or method reference. Fill the attribute information of the target contract and the necessary system information (such as the current date, time, etc.) into the placeholders in the numbering rule, or call the function / method specified by the numbering rule to generate the number. This step may require the use of programming techniques such as string formatting and function calls. The generated contract number is stored together with other information of the target contract for subsequent use or display to the user.
[0067] S205. If the mode of the target node is a shared mode, search upwards level by level in the contract numbering rule tree according to the position of the target node. When the parent node of the unique mode is found, the target contract is numbered according to the numbering rule of the parent node.
[0068] Among them, starting from the currently queried target node (i.e., the shared mode node), the node is set as the current processing node and is ready to traverse upward. Check whether the current processing node has a parent node. If there is no parent node (i.e., it is already a root node), it may mean that the rule tree is incorrectly configured or a suitable numbering rule cannot be found, and error handling is required (such as returning an error message, recording a log, etc.). If there is a parent node, the parent node is obtained as the new current processing node. For each new current processing node, check whether its mode is a unique mode. If a node with a unique mode is found, stop traversing upward and treat the node as the parent node for numbering. If the node mode is still a shared mode, continue traversing upward. Once the parent node of the unique mode is found, the numbering rule is extracted from the data structure of the node. Generate a contract number based on the extracted numbering rule and the attribute information of the target contract (and other system information that may be required, such as date, time, etc.). The number generation process may involve programming techniques such as string formatting, conditional logic, and loops, depending on the complexity and requirements of the numbering rule. Store the generated contract number together with other information of the target contract for subsequent use or recording. The generated contract number is fed back to the user, which may be displayed in the user interface, sent by email, printed document, etc.
[0069] Furthermore, if an abnormal situation is encountered during the traversal process (such as inaccessible nodes, data format errors, etc.), error handling should be performed to ensure the robustness of the program and user experience. If the parent node of the unique mode cannot be found in the end, error handling should also be performed, which may include displaying error messages to the user, recording detailed error logs, etc. Through the above steps, when the mode of the target node is a shared mode, the terminal device can automatically search upwards level by level in the contract numbering rule tree until a suitable parent node of the unique mode is found, and a contract number is generated according to the numbering rule of the node.
[0070] In some embodiments of the present application, after the number of the target contract is generated, the user is supported to manually modify the number, the number of the target contract is displayed on the user interface, and the number is edited based on the user's modification instructions, and the edited number is saved.
[0071] Among them, after the number is generated according to the method of the present application, the terminal device loads the current number of the target contract from the database or file system, usually by executing an SQL query (for a database) or reading a file (for a file system). The application uses the loaded data to render the user interface (UI). On the UI, the number of the target contract will be displayed in an editable text box (TextField), input box (Input) or other UI elements that allow user input. In order to improve the user experience, the number may be pre-filled in the text box, but the user can still select and modify it. The application sets an event listener (such as onChange, onBlur, onKeyPress, etc., depending on the framework or library used) for the UI element that displays the number, and the listener captures the user's input operations, such as typing characters, deleting characters, or losing focus. Whenever the user performs an input operation, the event listener triggers the corresponding callback function or event handler. In these callback functions, the application can update the UI in real time to reflect the user's input, and may perform basic input validation (such as limiting character types, length, etc.).
[0072] Before the user has finished editing and wants to save the changes, the application may require an explicit confirmation action, such as clicking a "Save" button. This prevents users from accidentally saving unfinished changes or incorrect input. Before saving the number, the application should perform more comprehensive validation steps to ensure that the number meets business rules or constraints (such as uniqueness, format requirements, etc.). If the validation fails, the application should display an error message to the user and allow the user to re-enter the number. Once the validation passes, the application will update the edited number to the database or file system. This is usually done by executing an UPDATE SQL statement (for a database) or writing to a file (for a file system). The update operation may need to deal with concurrency issues, such as using optimistic or pessimistic locking to ensure data consistency. After the update operation is completed, the application should update the UI to reflect the new number. It may involve reloading the contract information, refreshing the page, or simply updating the UI element that displays the number. Finally, the application should provide feedback to the user to let them know that the number has been successfully saved. This can be achieved by displaying a message box, a notification bar message, or updating the state of a UI element
[0073] In some embodiments of the present application, the user can configure the contract number rule tree according to actual needs. The specific process includes: displaying a configuration interface, configuring the topological structure of the contract number rule tree, as well as the node mode, numbering rules and attribute information on the configuration interface.
[0074] The embodiments of the present application have the following beneficial effects when evaluating the risk of a bond:
[0075] By building a preset contract numbering rule tree, enterprises can centrally manage all possible numbering rules and their applicable conditions (such as signing units, contract classification, contract nature, etc.), avoiding the tedious process of configuring numbering rules for each business entity or each type of contract. This approach significantly reduces the workload of initial configuration and improves management efficiency.
[0076] The multi-level structure and node attribute settings of the contract numbering rule tree enable enterprises to easily cope with complex and changing business scenarios. By adjusting the association relationship, attribute information and numbering rules between nodes, enterprises can quickly respond to business changes and dynamically update and optimize numbering rules without large-scale transformation or reconfiguration of the system.
[0077] This technical solution supports the matching of multiple attribute information such as the signing unit, contract classification and contract nature, ensuring that the numbering rules can accurately cover the needs of different business entities. At the same time, the setting of unique mode and shared mode enables the numbering rules to meet the unique needs of specific business entities, while achieving cross-entity resource sharing and numbering unification, enhancing the adaptability and scalability of the system.
[0078] By traversing the contract numbering rule tree and automatically matching the target contract attribute information, the system can accurately find the applicable numbering rule and number the target contract accordingly. This process reduces human intervention and errors and improves the accuracy and consistency of numbering.
[0079] The entire numbering process is highly automated, reducing manual operations and making the contract management process smoother and more efficient. At the same time, the centralized management and dynamic adjustment of numbering rules also help improve the stability and maintainability of the entire contract management system.
[0080] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0081] See also Figure 3 , which shows a schematic diagram of the structure of a contract numbering device provided by an exemplary embodiment of the present application, hereinafter referred to as device 3. The device 3 can be implemented as all or part of the terminal device through software, hardware or a combination of both. The device 3 includes: an acquisition unit 301, a traversal unit 302, a query unit 303, and a numbering unit 304.
[0082] An acquisition unit 301 is used to acquire attribute information of a target contract;
[0083] A traversal unit 302 is used to traverse a target node matching the attribute information of the target contract in a preset contract number rule tree; the contract number rule tree is divided into multiple layers, each layer includes one or more nodes, each node is associated with attribute information, a mode and a numbering rule, the attribute information includes one or more of a signing unit, a contract classification and a contract nature, and the mode is divided into a unique mode and a shared mode;
[0084] A query unit 303, configured to parse the pattern of the target node according to the query result;
[0085] A numbering unit 304, configured to number the target contract according to a numbering rule of the target node if the mode of the target node is a unique mode;
[0086] The numbering unit 304 is also used to search upwards level by level in the contract numbering rule tree according to the position of the target node if the mode of the target node is a shared mode. When the upper node of the unique mode is found, the target contract is numbered according to the numbering rule of the upper node.
[0087] In one or more possible embodiments, the numbering rules include: unit number, contract classification number, contract nature number and serial number.
[0088] In one or more possible embodiments, it further includes:
[0089] The verification unit is used to perform integrity verification on the target contract and the verification result is passed.
[0090] In one or more possible embodiments, traversing the target node matching the attribute information of the target contract in the preset contract number rule tree includes:
[0091] According to a depth-first search algorithm or a breadth-first search algorithm, a target node matching the attribute information of the target contract is traversed in a preset contract number rule tree.
[0092] In one or more possible embodiments, it further includes:
[0093] The modification unit is used to display the number of the target contract on the user interface, edit the number based on the user's modification instruction, and save the edited number.
[0094] In one or more possible embodiments, it further includes:
[0095] The configuration unit is used to display a configuration interface on which the topological structure of the contract number rule tree, as well as the mode, numbering rule and attribute information of the node are configured.
[0096] In one or more possible embodiments, obtaining the attribute information of the target contract includes:
[0097] When it is detected that the target contract is finalized, obtaining attribute information of the target contract; or
[0098] When it is detected that the target contract takes effect, the attribute information of the target contract is obtained.
[0099] It should be noted that the device 3 provided in the above embodiment only uses the division of the above functional modules as an example when executing the contract numbering method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the contract numbering device provided in the above embodiment and the contract numbering method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0100] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0101] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.
[0102] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the contract numbering method described in the above embodiments.
[0103] See also Figure 4 , which is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 4 As shown, the terminal device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0104] The communication bus 402 is used to realize the connection and communication between these components.
[0105] The user interface 403 may include a display screen (Display) and a camera (Camera), and the optional user interface 403 may also include a standard wired interface and a wireless interface.
[0106] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0107] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire terminal device 400, and executes various functions and processes data of the terminal device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0108] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.
[0109] exist Figure 4In the terminal device 400 shown in FIG. 1 , the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call the application stored in the memory 405 and specifically execute the following steps: Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.
[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0111] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for numbering contracts, characterized in that: include: Get the attribute information of the target contract; Traversing the target node matching the attribute information of the target contract in the preset contract number rule tree; The contract numbering rule tree is divided into multiple layers, each layer includes one or more nodes, each node is associated with attribute information, mode and numbering rule, the attribute information includes one or more of the signing unit, contract classification and contract nature, and the mode is divided into a unique mode and a shared mode; Parsing the mode of the target node according to the query result; If the mode of the target node is a unique mode, number the target contract according to the numbering rule of the target node; If the mode of the target node is a shared mode, the contract numbering rule tree is searched upwards level by level according to the position of the target node. When the parent node of the unique mode is found, the target contract is numbered according to the numbering rule of the parent node.
2. The method according to claim 1, characterized in that The numbering rules include: unit number, contract classification number, contract nature number and serial number.
3. The method according to claim 1 or 2, characterized in that: Before obtaining the attribute information of the target contract, the method further includes: The target contract is integrity checked and the verification result is passed.
4. The method according to claim 3, characterized in that The traversing the target node matching the attribute information of the target contract in the preset contract number rule tree includes: According to a depth-first search algorithm or a breadth-first search algorithm, a target node matching the attribute information of the target contract is traversed in a preset contract number rule tree.
5. The method according to claim 1, 2 or 4, characterized in that: Also includes: The number of the target contract is displayed on a user interface, and the number is edited based on a modification instruction of the user, and the edited number is saved.
6. The method according to claim 5, characterized in that Also includes: A configuration interface is displayed, on which the topological structure of the contract number rule tree, as well as the mode, number rule and attribute information of the node are configured.
7. The method according to claim 1 or 2 or 4 or 6, characterized in that: The acquiring of the attribute information of the target contract includes: When it is detected that the target contract is finalized, obtaining attribute information of the target contract; or When it is detected that the target contract takes effect, the attribute information of the target contract is obtained.
8. A contract numbering device, characterized in that: include: An acquisition unit, used for acquiring attribute information of a target contract; A traversal unit, configured to traverse a target node matching the attribute information of the target contract in a preset contract number rule tree; the contract number rule tree is divided into a plurality of layers, each layer includes one or more nodes, each node is associated with attribute information, a mode and a numbering rule, the attribute information includes one or more of a signing unit, a contract classification and a contract nature, and the mode is divided into a unique mode and a shared mode; A query unit, used for parsing the mode of the target node according to the query result; a numbering unit, configured to number the target contract according to a numbering rule of the target node if the mode of the target node is a unique mode; The numbering unit is also used to search upwards level by level in the contract numbering rule tree according to the position of the target node if the mode of the target node is a shared mode. When the upper node of the unique mode is found, the target contract is numbered according to the numbering rule of the upper node.
9. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
10. A terminal device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.
Citation Information
Cited By
Multidimensional attribute fusion contract number recommendation method and device, equipment and medium
CN120429450A
