Files
郭庆泰 cf5790229a 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)
2026-08-15 12:41:10 +08:00

380 lines
14 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>新建人员 - 项目管理系统</title>
<style>
/* ============= 全局(沿用 account-info.html / people.html 视觉约定)============= */
* { 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: 12px;
}
.breadcrumb a {
color: #1890ff;
text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
/* ============= 页面标题 ============= */
.page-title {
font-size: 22px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 16px;
}
/* ============= 红色提示(原型 u10646 + u10648) ============= */
.hint-list {
background: #fff;
border: 1px solid #f0f0f0;
border-radius: 8px;
padding: 12px 20px;
margin-bottom: 16px;
font-size: 12px;
color: #ff4d4f;
line-height: 1.8;
}
.hint-list p { margin-bottom: 4px; }
.hint-list p:last-child { margin-bottom: 0; }
/* ============= 表单卡片 ============= */
.card {
background: #fff;
border-radius: 8px;
padding: 32px 40px;
border: 1px solid #f0f0f0;
}
.form {
max-width: 560px;
margin: 0 auto;
}
.form-row {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.form-row:last-of-type { margin-bottom: 0; }
.form-label {
flex: 0 0 90px;
font-size: 14px;
color: #595959;
text-align: right;
padding-right: 16px;
white-space: nowrap;
}
.form-label .required {
color: #ff4d4f;
margin-right: 2px;
}
/* 输入框 / 下拉选择(原型 input width=358) */
.form-input,
.form-select {
flex: 0 0 358px;
height: 32px;
padding: 0 12px;
border: 1px solid #d9d9d9;
border-radius: 4px;
font-size: 13px;
color: #333;
background: #fff;
outline: none;
transition: all 0.2s;
}
.form-input:focus,
.form-select:focus {
border-color: #1890ff;
box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}
.form-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: 28px;
}
.form-error {
font-size: 12px;
color: #ff4d4f;
margin-top: 4px;
min-height: 16px;
padding-left: 106px;
}
/* ============= 按钮区(原型 u10635 保存 + u10637 取消, 原型两按钮同色; 现代规范区分主次) ============= */
.form-actions {
display: flex;
gap: 12px;
justify-content: center;
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid #f0f0f0;
}
.btn {
height: 40px;
padding: 0 24px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
min-width: 140px;
transition: all 0.2s;
}
/* 保存 → 现代规范设为主按钮(蓝); 原型两按钮同色(白底灰边),见新增项 */
.btn-primary {
background: #169bd5;
color: #fff;
border: 1px solid #169bd5;
}
.btn-primary:hover { background: #0f8db8; border-color: #0f8db8; }
.btn-default {
background: #fff;
color: #333;
border: 1px solid #797979;
}
.btn-default:hover { border-color: #1890ff; color: #1890ff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* ============= 响应式 ============= */
@media (max-width: 768px) {
.content { padding: 16px; }
.card { padding: 20px; }
.form { max-width: 100%; }
.form-row { flex-direction: column; align-items: stretch; }
.form-label { text-align: left; padding-right: 0; margin-bottom: 6px; }
.form-input, .form-select { flex: 1; width: 100%; }
.form-error { padding-left: 0; }
.form-actions { flex-direction: column; }
.btn { width: 100%; }
}
</style>
</head>
<body>
<!--
============================================================
来源: /原型/新建人员_1.html
/原型/files/新建人员_1/styles.css
============================================================
按 top 排序的内容区模块:
#1 u10628 "首页" (287, 52) → 面包屑根
#2 u10639 "人员管理>新建人员" (282, 143) → 面包屑路径(原型两段式,已合并)
#3 u10630 "新建人员" (712, 183) → 页面标题 h1
#4 u10594/u10596 姓名 (543,270)/(598,266) → 字段行
#5 u10597/u10599 手机号 (529,316)/(598,312) → 字段行
#6 u10646 "*手机号为唯一值" (983, 312) → 红色提示(见 hint-list)
#7 u10601/u10600 工作单位 (515,366)/(598,361) → 字段行
#8 u10648 "*全部为必填项" (983, 370) → 红色提示
#9 u10603/u10607 部门 (543,407)/(598,403) → 字段行
#10 u10605/u10608 职务 (543,458)/(598,454) → 字段行
#11 u10632/u10634 角色 (543,511)/(598,508) → label+select
#12 u10641/u10643 状态 (543,571)/(598,565) → label+select
#13 u10635 "保存" (610, 685) → 主按钮(见新增项)
#14 u10637 "取消" (805, 685) → 次按钮
============================================================
框架元素(由父级 executor.html 渲染,本页面不输出):
- u10610 顶栏水平线
- u10612 logo
- u10614/u10618/u10616/u10624 侧边栏菜单(项目列表/会议列表/人员管理/账号信息)
- u10626 侧边栏竖线
- u10620 顶栏头像
- u10622 顶栏用户名(张三)
已忽略的装饰元素:
- u10644 底部装饰线(原型 top:1017,无内容关联)
============================================================
新增项(非原型,现代表单默认):
- 所有字段前红色 * (原型 u10648 仅提示,但所有字段逻辑必填)
- 表单错误提示 #errMsg
- 保存按钮设为主按钮(蓝 #169bd5):原型两按钮同色(白底灰边),
现代表单默认区分主次
- 角色 select 仅"监察员"一项:保留原值,实际项目可扩展
- 下拉箭头 SVG icon(原型默认浏览器样式)
============================================================
-->
<main class="content">
<!-- #1+#2 面包屑:合并原型 u10628 + u10639 -->
<div class="breadcrumb">
<a href="javascript:void(0)" onclick="goHome()">首页</a> &gt;
<a href="javascript:void(0)" onclick="goPeople()">人员管理</a> &gt;
新建人员
</div>
<!-- #3 页面标题(对应 u10630) -->
<h1 class="page-title">新建人员</h1>
<!-- #6+#8 红色提示(对应 u10646 + u10648) -->
<div class="hint-list">
<p>*手机号为唯一值</p>
<p>*全部为必填项</p>
</div>
<!-- #4~#12 表单卡片 -->
<div class="card">
<form id="newPersonForm" class="form" onsubmit="return false;">
<!-- 姓名: u10594 label + u10596 input -->
<div class="form-row">
<label class="form-label" for="name">
<span class="required">*</span>姓名
</label>
<input type="text" id="name" name="name" class="form-input" placeholder="请输入姓名" maxlength="20">
</div>
<!-- 手机号: u10597 label + u10599 input -->
<div class="form-row">
<label class="form-label" for="phone">
<span class="required">*</span>手机号
</label>
<input type="tel" id="phone" name="phone" class="form-input" placeholder="请输入手机号" maxlength="11">
</div>
<!-- 工作单位: u10601 label + u10600 input -->
<div class="form-row">
<label class="form-label" for="company">
<span class="required">*</span>工作单位
</label>
<input type="text" id="company" name="company" class="form-input" placeholder="请输入工作单位">
</div>
<!-- 部门: u10603 label + u10607 input -->
<div class="form-row">
<label class="form-label" for="department">
<span class="required">*</span>部门
</label>
<input type="text" id="department" name="department" class="form-input" placeholder="请输入部门">
</div>
<!-- 职务: u10605 label + u10608 input -->
<div class="form-row">
<label class="form-label" for="position">
<span class="required">*</span>职务
</label>
<input type="text" id="position" name="position" class="form-input" placeholder="请输入职务">
</div>
<!-- 角色: u10632 label + u10634 select -->
<div class="form-row">
<label class="form-label" for="role">
<span class="required">*</span>角色
</label>
<select id="role" name="role" class="form-select">
<option value="监察员">监察员</option>
</select>
</div>
<!-- 状态: u10641 label + u10643 select -->
<div class="form-row">
<label class="form-label" for="status">
<span class="required">*</span>状态
</label>
<select id="status" name="status" class="form-select">
<option value="">请选择</option>
<option value="正常">正常</option>
<option value="禁用">禁用</option>
</select>
</div>
<div id="errMsg" class="form-error"></div>
<!-- #13+#14 按钮: u10635 保存(主) + u10637 取消(次) -->
<div class="form-actions">
<button type="button" class="btn btn-primary" onclick="save()">保存</button>
<button type="button" class="btn btn-default" onclick="cancel()">取消</button>
</div>
</form>
</div>
</main>
<script>
function goHome() {
try {
if (window.parent && window.parent.document.getElementById('contentFrame')) {
window.parent.document.getElementById('contentFrame').src = 'overview.html';
}
} catch (e) {}
}
function goPeople() {
try {
if (window.parent && window.parent.document.getElementById('contentFrame')) {
window.parent.document.getElementById('contentFrame').src = 'people.html';
}
} catch (e) {}
}
// 校验:全部必填;手机号格式
function validate() {
const name = document.getElementById('name').value.trim();
const phone = document.getElementById('phone').value.trim();
const company = document.getElementById('company').value.trim();
const department = document.getElementById('department').value.trim();
const position = document.getElementById('position').value.trim();
const status = document.getElementById('status').value;
if (!name) return '请输入姓名';
if (!phone) return '请输入手机号';
if (!/^1[3-9]\d{9}$/.test(phone)) return '手机号格式不正确';
if (!company) return '请输入工作单位';
if (!department) return '请输入部门';
if (!position) return '请输入职务';
if (!status) return '请选择状态';
return '';
}
['name', 'phone', 'company', 'department', 'position', 'status'].forEach(id => {
const el = document.getElementById(id);
if (el) el.addEventListener('input', () => {
document.getElementById('errMsg').textContent = '';
});
if (el && el.tagName === 'SELECT') el.addEventListener('change', () => {
document.getElementById('errMsg').textContent = '';
});
});
function save() {
const err = validate();
const errEl = document.getElementById('errMsg');
if (err) {
errEl.textContent = err;
return;
}
errEl.textContent = '';
if (confirm('确定要保存这条新建人员记录吗?')) {
alert('保存成功');
goPeople();
}
}
function cancel() {
if (confirm('确定要取消吗?已填写的内容将丢失')) {
goPeople();
}
}
</script>
</body>
</html>