refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK
主要改动: - SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org - SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type - SQL: biz_meeting.support_unit_name → org_name - SQL: biz_person.work_unit → org_id (FK) - 后端: 新 BizOrg entity/mapper/service/controller - 后端: BizProject/BizMeeting 字段重命名 - 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件 - 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id) - 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub) - 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits) - 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步) - 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名 - 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商) - 前端: 全工程 execution → executor (company type / role / person unit_type)
This commit is contained in:
@@ -0,0 +1,458 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- 角色:合规 父级:manager.html 原型:原型/支持单位管理__1_.html
|
||||
按 top 升序的字段映射(6 列 + 2 行筛选):
|
||||
表格列(6):单位名称 / 单位地址 / 税号/统一社会信用代码 / 合作状态 / 创建日期 / 操作
|
||||
筛选(2 行,按原型 top 升序):
|
||||
Row 1 (top:164-177):单位名称(u5319) / 创建日期起止(u5240+u5242/u5243) / 合作状态(u5331+u5333)
|
||||
Row 2 (top:216-221):单位地址(u5321) / 税号统一社会信用代码(u5238) / 查找按钮(u5150)
|
||||
操作列(每行 3 链接):人员管理 + 查看 + 禁用/恢复(逐行交替,原型 T346-T638)
|
||||
底部红字:u5323 *点击禁用后,该企业下所有账号则均不可登录
|
||||
面包屑:u5265 工作台 (L303 T64) -->
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>支持单位管理 - 项目管理系统</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
color: #333;
|
||||
background: #fafafa;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 24px 32px;
|
||||
}
|
||||
|
||||
/* ============= 面包屑 ============= */
|
||||
.breadcrumb { font-size: 13px; color: #8c8c8c; margin-bottom: 16px; }
|
||||
.breadcrumb a { color: #1890ff; text-decoration: none; cursor: pointer; }
|
||||
.breadcrumb a:hover { text-decoration: underline; }
|
||||
.breadcrumb .sep { margin: 0 6px; color: #bfbfbf; }
|
||||
.breadcrumb .current { color: #595959; }
|
||||
|
||||
/* ============= 页头 ============= */
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 13px;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
|
||||
/* ============= 卡片 ============= */
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 20px 24px;
|
||||
margin-bottom: 16px;
|
||||
border: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
margin-bottom: 16px;
|
||||
padding-left: 10px;
|
||||
border-left: 3px solid #1890ff;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ============= 筛选区 ============= */
|
||||
.filter-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 16px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter-field {
|
||||
flex: 0 0 240px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.filter-label {
|
||||
font-size: 14px;
|
||||
color: #595959;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.filter-input,
|
||||
.filter-select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.filter-date-range {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.filter-date-range .filter-input {
|
||||
width: 90px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.filter-date-sep {
|
||||
color: #8c8c8c;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.filter-input:focus,
|
||||
.filter-select:focus {
|
||||
border-color: #1890ff;
|
||||
box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 10px center;
|
||||
background-size: 14px;
|
||||
padding-right: 24px;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
height: 32px;
|
||||
padding: 0 24px;
|
||||
background: #1890ff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.filter-btn:hover { background: #096dd9; }
|
||||
|
||||
/* ============= 表格 ============= */
|
||||
.table-wrap {
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
table-layout: auto;
|
||||
min-width: 1100px;
|
||||
}
|
||||
|
||||
.data-table thead th {
|
||||
background: #fafafa;
|
||||
padding: 12px 12px;
|
||||
text-align: left;
|
||||
color: #1a1a1a;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table tbody td {
|
||||
padding: 12px 12px;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
color: #595959;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table tbody tr:hover { background: #fafcff; }
|
||||
|
||||
.col-name { color: #1a1a1a; font-weight: 500; }
|
||||
|
||||
.col-tax-code {
|
||||
font-family: ui-monospace, "Courier New", monospace;
|
||||
color: #595959;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.status-active { background: #e6f7ff; color: #1890ff; }
|
||||
.status-disabled { background: #fff1f0; color: #ff4d4f; }
|
||||
|
||||
.op-link {
|
||||
color: #1890ff;
|
||||
text-decoration: none;
|
||||
margin-right: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.op-link:last-child { margin-right: 0; }
|
||||
.op-link:hover { text-decoration: underline; }
|
||||
|
||||
/* ============= 红色提示 ============= */
|
||||
.hint-bottom {
|
||||
font-size: 12px;
|
||||
color: #ff4d4f;
|
||||
margin-top: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filter-row { gap: 12px; }
|
||||
.filter-field { flex: 0 0 100%; }
|
||||
.content { padding: 16px; }
|
||||
.data-table { font-size: 12px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="content">
|
||||
|
||||
<!-- ============= 面包屑 (u5265 "工作台" L303 T64) ============= -->
|
||||
<div class="breadcrumb">
|
||||
<a href="javascript:void(0)" onclick="navigateTo('workbench.html')">工作台</a>
|
||||
<span class="sep">></span>
|
||||
<span class="current">支持单位管理</span>
|
||||
</div>
|
||||
|
||||
<!-- ============= 页头 ============= -->
|
||||
<div class="page-header">
|
||||
<div>
|
||||
<h1 class="page-title">支持单位管理</h1>
|
||||
<p class="page-subtitle">管理支持单位的资质、合作状态与人员</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ============= 筛选区 =============
|
||||
字段来源(原型 支持单位管理__1_.html), 只取「字段/顺序/文案」, 布局不照搬:
|
||||
u5319 单位名称 / u5240 创建日期(起止) / u5331 合作状态
|
||||
u5321 单位地址 / u5238 税号统一社会信用代码 / u5150 查找
|
||||
原型因画布固定宽(1309px)被迫折成两行, 属画布限制而非设计意图,
|
||||
故此处用单一 flex 容器自然折行, 宽屏一行排下, 窄屏自动换行。
|
||||
-->
|
||||
<div class="card">
|
||||
<div class="filter-row">
|
||||
<div class="filter-field">
|
||||
<span class="filter-label">单位名称:</span>
|
||||
<input type="text" class="filter-input" placeholder="输入单位名称">
|
||||
</div>
|
||||
<div class="filter-field">
|
||||
<span class="filter-label">创建日期:</span>
|
||||
<div class="filter-date-range">
|
||||
<input type="text" class="filter-input" placeholder="开始日期">
|
||||
<span class="filter-date-sep">至</span>
|
||||
<input type="text" class="filter-input" placeholder="结束日期">
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter-field">
|
||||
<span class="filter-label">合作状态:</span>
|
||||
<select class="filter-select">
|
||||
<option value="">请选择</option>
|
||||
<option value="active">正常</option>
|
||||
<option value="disabled">禁用</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-field">
|
||||
<span class="filter-label">单位地址:</span>
|
||||
<input type="text" class="filter-input" placeholder="输入单位地址">
|
||||
</div>
|
||||
<div class="filter-field">
|
||||
<span class="filter-label">税号/统一社会信用代码:</span>
|
||||
<input type="text" class="filter-input" placeholder="输入税号或统一社会信用代码">
|
||||
</div>
|
||||
<button class="filter-btn">查找</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ============= 表格 ============= -->
|
||||
<div class="table-wrap">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>单位名称</th>
|
||||
<th>单位地址</th>
|
||||
<th>税号/统一社会信用代码</th>
|
||||
<th>合作状态</th>
|
||||
<th>创建日期</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-active">正常</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="false">禁用</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-disabled">禁用</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="true">恢复</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-active">正常</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="false">禁用</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-disabled">禁用</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="true">恢复</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-active">正常</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="false">禁用</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-disabled">禁用</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="true">恢复</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-active">正常</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="false">禁用</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="col-name op-link" href="javascript:void(0)" style="margin:0;">北京XXXXXXX公司</a></td>
|
||||
<td>北京市海淀区XXX路XXXX号</td>
|
||||
<td class="col-tax-code">91330101MA2GPR961K</td>
|
||||
<td><span class="status-tag status-active">正常</span></td>
|
||||
<td>2026.05.22</td>
|
||||
<td>
|
||||
<a class="op-link" href="javascript:void(0)">人员管理</a>
|
||||
<a class="op-link" href="javascript:void(0)" onclick="navigateTo('support-unit-view.html')">查看</a>
|
||||
<a class="op-link js-toggle" href="javascript:void(0)" data-disabled="true">恢复</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- ============= 底部红色提示 ============= -->
|
||||
<p class="hint-bottom">*点击禁用后,该企业下所有账号则均不可登录</p>
|
||||
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// 子页面跳转走 iframe 路由(父级 manager.html#contentFrame), 避免整页刷新丢失侧边栏
|
||||
function navigateTo(href) {
|
||||
try {
|
||||
if (window.parent && window.parent.document.getElementById('contentFrame')) {
|
||||
window.parent.document.getElementById('contentFrame').src = href;
|
||||
} else {
|
||||
window.location.href = href;
|
||||
}
|
||||
} catch (e) { window.location.href = href; }
|
||||
}
|
||||
|
||||
// ============= 禁用 / 恢复 切换 =============
|
||||
document.querySelectorAll('.js-toggle').forEach(link => {
|
||||
link.addEventListener('click', e => {
|
||||
e.preventDefault();
|
||||
const row = link.closest('tr');
|
||||
const tag = row.querySelector('.status-tag');
|
||||
const isDisabled = link.dataset.disabled === 'true';
|
||||
|
||||
if (isDisabled) {
|
||||
// 当前是"恢复",点击后变为正常
|
||||
link.textContent = '禁用';
|
||||
link.dataset.disabled = 'false';
|
||||
tag.className = 'status-tag status-active';
|
||||
tag.textContent = '正常';
|
||||
} else {
|
||||
// 当前是"禁用",点击后变为禁用
|
||||
if (!confirm('确定要禁用该单位吗?禁用后该企业下所有账号均不可登录')) {
|
||||
return;
|
||||
}
|
||||
link.textContent = '恢复';
|
||||
link.dataset.disabled = 'true';
|
||||
tag.className = 'status-tag status-disabled';
|
||||
tag.textContent = '禁用';
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user