Draft
作为企业用户, 我希望查看和管理残疾人人才信息, 以便进行人才分配和就业管理。
docs/小程序原型/yongren.html中的人才管理页面依赖故事:
残疾人才API(disability_person模块):
订单管理API(order模块):
薪资管理API(salary模块):
文件管理API(file模块):
技术集成:
api/v1/yongren人才列表页设计规范:
必须严格对照原型文件 docs/小程序原型/yongren.html 第419-560行的人才列表页面设计实现:
页面结构:
h-[calc(100%-60px)] overflow-y-auto(仅减去底部导航60px)搜索和筛选区域(第434-447行):
p-4 border-b border-gray-200flex items-center bg-gray-100 rounded-lg px-4 py-2 mb-3
<i class="fas fa-search text-gray-400 mr-2"></i><input type="text" placeholder="搜索姓名、残疾证号..." class="w-full bg-transparent outline-none">flex space-x-2 overflow-x-auto pb-2
bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full whitespace-nowrap(激活状态)bg-gray-100 text-gray-800 text-xs px-3 py-1 rounded-full whitespace-nowrap列表标题区域(第451-461行):
flex justify-between items-center mb-4<h3 class="font-semibold text-gray-700">全部人才 (32)</h3>flex space-x-2
<button class="text-gray-500"><i class="fas fa-sort"></i></button><button class="text-gray-500"><i class="fas fa-filter"></i></button>人才卡片列表(第463-560行):
space-y-3person-card card bg-white p-4 flex items-center(复用基础样式)
name-avatar blue(颜色类:blue, green, purple等),显示姓氏flex-1flex justify-between items-start
<h4 class="font-semibold text-gray-800">张明</h4><p class="text-xs text-gray-500">肢体残疾 · 三级 · 男 · 28岁</p><span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">在职</span>mt-2 flex justify-between text-xs text-gray-500
入职: 2023-08-15薪资: ¥4,800人才详情页设计规范:
必须严格对照原型文件 docs/小程序原型/yongren.html 第561-864行的人才详情页面设计实现:
页面结构:
h-[calc(100%-60px)] overflow-y-auto(仅减去底部导航60px)顶部信息区域(第576-605行):
gradient-bg text-white p-5flex justify-between items-start
flex items-centerw-16 h-16 rounded-full border-2 border-white mr-4 flex items-center justify-center bg-blue-500 text-white text-2xl font-bold,显示姓氏<h2 class="text-xl font-bold">张明</h2>,<p class="text-sm opacity-80">肢体残疾 · 三级 · 在职</p>bg-white/20 rounded-full p-2,图标 <i class="fas fa-ellipsis-v text-white"></i>mt-4 flex justify-between,三个卡片横向排列
text-center,数值 <p class="text-2xl font-bold">¥4,800</p>,标签 <p class="text-xs opacity-80">当前薪资</p>详细信息区域(第608-864行):
p-4基本信息卡片(第610-634行):
card bg-white p-4 mb-4<h3 class="font-semibold text-gray-700 mb-3">基本信息</h3>grid grid-cols-2 gap-3 text-sm
<p class="text-gray-500">性别</p>,值 <p class="text-gray-800">男</p>col-span-2 跨两列工作信息卡片(第637-657行):
card bg-white p-4 mb-4<h3 class="font-semibold text-gray-700 mb-3">工作信息</h3>space-y-3 text-sm
flex justify-between<p class="text-gray-500">入职日期</p><p class="text-gray-800">2023-08-15</p> 或状态标签 <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">在职</span>薪资信息卡片(第660-...行):
card bg-white p-4 mb-4<h3 class="font-semibold text-gray-700 mb-3">薪资信息</h3>个人征信文件区域(原型中可能在其他位置):
UI组件使用:
@d8d/allin-disability-person-management-uiUI包页面组件位置:
mini/src/pages/yongren/talent/list/ - 人才列表页面mini/src/pages/yongren/talent/detail/ - 人才详情页面业务组件位置:
mini/src/components/talent/ - 人才相关业务组件
TalentSearch.tsx - 搜索组件TalentFilter.tsx - 筛选组件TalentTable.tsx - 表格组件SalaryHistory.tsx - 薪资历史组件基于史诗012扩展的数据库schema:
disabled_person表已添加birth_date字段,用于准确年龄计算 [来源:docs/stories/012.001.story.md#数据模型]order_person_asset表的asset_type枚举已扩展视频类型 [来源:docs/stories/012.001.story.md#数据模型]users2表已添加company_id字段,用于关联企业用户 [来源:docs/stories/012.001.story.md#数据模型]测试框架:Jest + Testing Library 关键测试场景:
| 日期 | 版本 | 描述 | 作者 |
|---|---|---|---|
| 2025-12-17 | 1.0 | 初始创建(人才管理故事) | Bob(Scrum Master) |
此部分由开发代理在实施过程中填充
来自QA代理对已完成故事实施的QA审查结果