You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
6.1 KiB
96 lines
6.1 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>合同管理 - 资金使用管理系统</title>
|
|
<link href="https://cdn.staticfile.org/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.staticfile.org/bootstrap-icons/1.11.0/font/bootstrap-icons.min.css">
|
|
<style>
|
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; background-color: #f5f7fa; padding: 20px; }
|
|
.page-header { background: white; padding: 25px 30px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
|
|
.page-title { font-size: 24px; font-weight: 600; color: #333; margin: 0; }
|
|
.page-title i { margin-right: 10px; color: #667eea; }
|
|
.main-content { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); padding: 30px; }
|
|
.form-section { margin-bottom: 30px; }
|
|
.section-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
|
|
.form-label { font-weight: 500; color: #333; margin-bottom: 8px; }
|
|
.form-label .required { color: #ef4444; margin-left: 3px; }
|
|
.form-control, .form-select { border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px; }
|
|
.form-control:focus, .form-select:focus { border-color: #667eea; box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-header">
|
|
<h1 class="page-title"><i class="bi bi-file-earmark-text"></i> 合同管理</h1>
|
|
</div>
|
|
<div class="main-content">
|
|
<ul class="nav nav-tabs">
|
|
<li class="nav-item"><button class="nav-link active" data-bs-toggle="tab" data-bs-target="#approval">合同审批</button></li>
|
|
<li class="nav-item"><button class="nav-link" data-bs-toggle="tab" data-bs-target="#change">合同变更审批</button></li>
|
|
</ul>
|
|
<div class="tab-content mt-4">
|
|
<div class="tab-pane fade show active" id="approval">
|
|
<form id="approvalForm">
|
|
<div class="form-section">
|
|
<h3 class="section-title">合同信息</h3>
|
|
<div class="row g-3">
|
|
<div class="col-md-6"><label class="form-label">合同名称<span class="required">*</span></label><input type="text" class="form-control" required></div>
|
|
<div class="col-md-6"><label class="form-label">合同金额<span class="required">*</span></label><input type="number" class="form-control" step="0.01" required></div>
|
|
<div class="col-md-6"><label class="form-label">合同对方<span class="required">*</span></label><input type="text" class="form-control" required></div>
|
|
<div class="col-md-6"><label class="form-label">合同期限<span class="required">*</span></label><input type="text" class="form-control" required></div>
|
|
<div class="col-md-12"><label class="form-label">合同内容<span class="required">*</span></label><textarea class="form-control" rows="4" required></textarea></div>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex justify-content-end gap-3">
|
|
<button type="button" class="btn btn-secondary" onclick="cancelForm()">取消</button>
|
|
<button type="submit" class="btn btn-primary">提交申请</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="tab-pane fade" id="change">
|
|
<form id="changeForm">
|
|
<div class="form-section">
|
|
<h3 class="section-title">变更信息</h3>
|
|
<div class="row g-3">
|
|
<div class="col-md-6"><label class="form-label">原合同编号<span class="required">*</span></label><input type="text" class="form-control" required></div>
|
|
<div class="col-md-6"><label class="form-label">变更类型<span class="required">*</span></label><select class="form-select" required><option value="">请选择</option><option value="amount">金额变更</option><option value="content">内容变更</option><option value="period">期限变更</option></select></div>
|
|
<div class="col-md-12"><label class="form-label">变更内容<span class="required">*</span></label><textarea class="form-control" rows="4" required></textarea></div>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex justify-content-end gap-3">
|
|
<button type="button" class="btn btn-secondary" onclick="cancelForm()">取消</button>
|
|
<button type="submit" class="btn btn-primary">提交申请</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="https://cdn.staticfile.org/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
['approvalForm', 'changeForm'].forEach(id => {
|
|
document.getElementById(id).addEventListener('submit', function(e) {
|
|
e.preventDefault();
|
|
if (confirm('确定要提交申请吗?')) alert('提交成功!');
|
|
});
|
|
});
|
|
function cancelForm() { if (confirm('确定要取消吗?')) window.history.back(); }
|
|
|
|
// 根据URL参数切换tab
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const type = urlParams.get('type');
|
|
|
|
if (type === 'change') {
|
|
const changeTab = document.querySelector('[data-bs-target="#change"]');
|
|
if (changeTab) {
|
|
const tab = new bootstrap.Tab(changeTab);
|
|
tab.show();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|