[Open-source] A Set of Enterprise-oriented Contract Management Platforms, Covering Core Contract Approval and Transfer Processes
![[Open-source] A Set of Enterprise-oriented Contract Management Platforms, Covering Core Contract Approval and Transfer Processes](https://yy123.ink/api/img/1796370253380-36aezu.png)
1. Project Overview
Zhe Xin Contract Management System (Open Source Edition)
Zhaoxin Contract Management System — Open Source Edition
Zhe Xin Contract Management Open Source Edition is a contract management platform for enterprises, covering contract drafting, template management, approval flow, etc.
2. Open Source License
Licensed under MIT
3. Screenshots
Feature Screenshots
The following are actual interface screenshots of the open source edition. Click on the images to view the original images.
|
|
|
|---|---|
|
|
|
|
|
|---|---|
|
|
|
|
|
|---|---|
|
|
4. Feature Overview
An open source contract management platform for enterprises, covering contract drafting, template management, approval flow, contract numbering, online editing, and contract ledger, etc. It supports OnlyOffice online editing and can be used as a technical reference and development basis for enterprise contract management systems.
This repository opens the commercial product's functional parts.Early versions (0.9) core modulesDerived from the actual delivery of commercial systems, it can be used as a technical reference and development basis for enterprise-level contract management.
Core Function
Compared to general backend scaffolding, this system has focused on the professional capabilities of the contract field:
- Online Contract Editing (OnlyOffice + WPS dual engine)
Integrates OnlyOffice to implement online editing, multi-person collaboration, and callback saving of contract documents; simultaneously, it has built-in WPS open platform interface capabilities. -
Warning: The open-source version of WPS integration in this project is based on the early open interface of WPS, and WPS has now switched to the new version interface.The old interface is no longer available.Support for uploading, using scope and version (release/disable) management of contract templates, organize templates by contract type, and reference templates when drafting. - Contract Template Management (Upload Type)
Built-in self-developed workflow engine and designer, support core flow conversion (draft → approval → seal/upload double seal) and drive state conversion, record all nodes' logs through domain events (ContractEvent). - Contract Approval Process (Based on Activiti Workflow)
Built-in self-developed workflow engine and designer, supporting core conversion from drafting → approval → sealing (stamping/uploading dual seals), and driving state transformation and recording node logs throughout by domain events (ContractEvent). The execution status and statistics are still retained in the backend domain model, and the open-source version does not provide an independent execution task page. - Contract Number Rule Engine
Visualized configuration numbering rules (prefix, date, independent sequential numbering by entity/type/year/month, automatic reset), rule interpretation execution + synchronous transaction guarantee uniqueness of numbering in concurrent scenarios, business zero-code adaptation to any numbering standard. - Bulletin Board and Record Book
Contract statistics dashboard (DashboardController) and contract ledger, provide statistics and queries by dimensions such as drafting, approval, and contract status. - Document processing capability
Integration with docx4j, iText, POI, support for Word/Excel/PDF parsing, document merging (DocMergeUtil), template rendering and export. - Multi-channel notification
Email + SMS (sms4j) notifications, covering reminders for key nodes such as approval and expiration. - DingTalk Organization and User Synchronization
Preserve zxcm-third/zxcm-syncData module, support synchronizing departments, users, and third-party account mapping to system users from DingTalk directory; user management page displays 'Sync DingTalk' entry after enabling DingTalk configuration, optional DingTalk OAuth login and message push.
5. Tech Stack
System architecture
Architecture diagram covers contract lifecycle, core business modules, platform support, data running environment, and optional external integration. Developers can further view architecture explanation.
Tech Stack
| Category |
Technical Selection |
Description |
| Backend Framework |
Spring Boot 2.6.x |
Java 11 |
| Permission Authentication |
Sa-Token + JWT |
Stateless Token |
| Database |
MySQL 8.x |
|
| Cache |
Redis |
Session, Distributed Lock, Rate Limiting |
| ORM |
MyBatis-Plus 3.5.x |
|
| Workflow |
Activiti 6.x |
Contract Approval Process |
| Online Editing |
OnlyOffice / WPS |
Contract Document Online Editing, Multi-Person Collaboration |
| File storage |
Local File System |
|
| Frontend Framework (PC) |
Vue 2.6 + Element UI 2.15 |
zxcm-ui
Module |
| Enterprise Communication |
DingTalk Open Platform / JustAuth |
DingTalk Organization Structure and User Synchronization, optional OAuth login, message push |
| Deployment |
Docker + Compose |
Containerized Deployment |
Module Structure
Overall structure centered onContract Business Moduleas core, basic framework unified to ruoyi-base below, directory more clear:
ruoyi-vue-plus (root)├── ruoyi-admin├── ruoyi-base│ ├── ruoyi-common│ ├── ruoyi-framework│ ├── ruoyi-system│ ├── ruoyi-generator│ └── ruoyi-tenant├── zxcm-contract├── zxcm-form├── zxcm-workflow├── zxcm-notify├── zxcm-third│ ├── zxcm-excel│ └── zxcm-syncData└── zxcm-ui
6. Source Code Repository
Open-source project address:
https://gitee.com/fanhuibin1/zhaoxin-contract
Next steps