# 内部管理系统 **Repository Path**: amning/management-system ## Basic Information - **Project Name**: 内部管理系统 - **Description**: 烟台市中心内部管理系统 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-06 - **Last Updated**: 2026-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Contract Archive Management System A contract archive management system based on ASP.NET Core 9.0 and Vue.js, designed for comprehensive management, archiving, and borrowing processes of enterprise contracts. ## Project Overview This system is a fully-featured enterprise-grade contract management solution built with a frontend-backend separation architecture, supporting the full lifecycle management of contracts including creation, approval, archiving, and borrowing. ## Technology Stack ### Backend - **Framework**: ASP.NET Core 9.0 - **Database**: SQLite + Entity Framework Core - **Authentication**: JWT (JSON Web Token) - **ORM**: Entity Framework Core ### Frontend - **Framework**: Vue 3 - **UI Component Library**: Element Plus - **Build Tool**: Vite - **HTTP Client**: Axios ## Functional Modules ### 1. User Management - User login/logout - Password modification - User CRUD operations - Role and permission management ### 2. Contract Management - Create, edit, and delete contracts - Contract status management (Draft, Under Review, In Execution, Completed, Terminated, Archived) - Contract approval workflow - Contract file uploads ### 3. Archive Management - Contract archiving operations - Automatic generation of archive numbers - Archive search and retrieval - Archive location management (Room Number, Shelf Number, Box Number) ### 4. Borrowing Management - Borrowing requests - Approval workflow - Return management - Borrowing status tracking ### 5. Basic Data - Contract type management - Project management - Client management - Company management - Dictionary management ### 6. Statistics & Reports - Contract count statistics - Amount statistics - Borrowing statistics - Monthly trend analysis ## Project Structure ``` backend/ ├── ContractArchive.Api/ # Web API Project │ ├── Controllers/ # Controllers │ │ ├── ArchivesController.cs │ │ ├── AuthController.cs │ │ ├── BaseDataController.cs │ │ ├── BorrowsController.cs │ │ ├── DictionariesController.cs │ │ ├── FilesController.cs │ │ ├── StatisticsController.cs │ │ └── UsersController.cs │ ├── Program.cs │ └── appsettings.json ├── ContractArchive.Core/ # DTO Layer │ └── DTOs/ ├── ContractArchive.Entity/ # Entity Layer │ └── Entities/ ├── ContractArchive.Infrastructure/# Data Access Layer │ ├── AppDbContext.cs │ └── DataSeeder.cs └── ContractArchive.sln frontend/ # Vue.js Frontend ├── dist/ # Build Output ├── index.html └── src/ ``` ## Quick Start ### Prerequisites - .NET 9.0 SDK - Node.js 18+ - SQLite ### Backend Configuration 1. Navigate to the backend directory: ```bash cd backend/ContractArchive.Api ``` 2. Restore dependencies: ```bash dotnet restore ``` 3. Run the project: ```bash dotnet run ``` The API will be available at `http://localhost:5000`. ### Frontend Configuration 1. Navigate to the frontend directory: ```bash cd frontend ``` 2. Install dependencies: ```bash npm install ``` 3. Start the development server: ```bash npm run dev ``` The frontend will be available at `http://localhost:5173`. 4. Build the production version: ```bash npm run build ``` ## Default Account The system includes a default administrator account: - **Username**: admin - **Password**: admin123 ## API Endpoints | Module | Path | Description | |--------|------|-------------| | Authentication | `/api/auth/login` | User login | | Authentication | `/api/auth/current` | Get current user | | User | `/api/users` | User management | | Contract | `/api/contracts` | Contract management | | Archive | `/api/archives` | Archive management | | Borrowing | `/api/borrows` | Borrowing management | | Statistics | `/api/statistics` | Data statistics | | File | `/api/files/upload` | File upload | ## Database The system uses an SQLite database; the default database file is `contracts.db`. ## License MIT License