生产模块拆分为前缫/后缫;修复菜单卡顿与重复请求;支持 IIS 单站点部署

1. 生产模块按工序拆分为两个一级菜单
   - 生产-前缫(落丝记录)、生产-后缫(纤度检验、黑板检验)
   - 旧的「生产管理」(/prod) 目录及子菜单由种子自动清理,页面组件与权限标识保持不变
   - 消息中心跳转路径、首页快捷入口路径同步更新

2. 职工管理独立为一级菜单(原挂在「基础数据」目录下),并清理历史子菜单

3. 修复侧边栏菜单展开卡顿(基础数据等子项较多的目录尤其明显)
   - 去掉 Element Plus 的 height 过渡动画(会逐帧重排全部子项)
   - 收起时改用 height:0 + visibility:hidden 而非 display:none,子项提前完成布局
   - 菜单区独立滚动并预留滚动条宽度(scrollbar-gutter),消除展开时的横向抖动
   - 菜单项增加 contain 布局隔离,淡入动画改为容器级

4. 修复页面首次打开重复请求
   - 分页组件挂载时会触发一次 current-change,页码未变化时不再重复加载(18 个页面)
   - 职工管理去掉 onMounted 与默认选中部门的重复加载
   - 工种管理、原料庄口的注册表下拉由按 key 多次请求改为一次全量拉取

5. 后端增加前端静态托管与 SPA 路由回退,支持 IIS 单站点部署(前后端同源)
6. 新增部署脚本 deploy-iis.ps1(首次部署)与 update-iis.ps1(更新发布)
This commit is contained in:
yanpeng200212
2026-10-12 14:09:59 +08:00
parent 2ffb83830c
commit c3e2665257
47 changed files with 59270 additions and 109 deletions
@@ -0,0 +1,110 @@
using F9WebAiTest.Domain.Enums.SYS.Employees;
namespace F9WebAiTest.Application.Dtos.SYS.Employees;
/// <summary>职工列表读模型</summary>
public record EmployeeReadDto_View(
long Id,
long DepId,
string DepName,
long WorktypeId,
string WorktypeName,
Prod_Banci_Enum? Banci,
string BanciName,
string Gangwei,
Employee_WorkStatus_Enum WorkStatus,
bool IsZhuanzheng,
string Code,
string Name,
string Gender,
int Nianling,
string IdCard,
string Phone,
DateTime? BirthDate,
DateTime? RuzhiDate,
DateTime? ZhuanzhengDate,
DateTime? LizhiDate,
string LizhiYuanyin,
string WorkGroup,
int Sort,
string BankcardCode,
string HetongType,
DateTime? HetongStartDate,
DateTime? HetongEndDate,
DateTime? TuixiuDate,
DateTime? ShebaoDate,
string Minzu,
string HunyinStatus,
string Xueli,
string Huji,
string Address,
string JinjiLianxiren,
string JinjiLianxirenPhone,
string BiyeYuanxiao,
string Zhuanye,
string NamePinyin,
string Memo);
/// <summary>职工编辑读模型</summary>
public record EmployeeReadDto_Edit(
long Id,
long DepId,
long WorktypeId,
Employee_WorkStatus_Enum WorkStatus,
Prod_Banci_Enum? Banci,
string Code,
string Name,
string Gangwei,
string Phone,
string IdCard,
DateTime? BirthDate,
string Address,
string Gender,
string Minzu,
string HunyinStatus,
string Huji,
DateTime? RuzhiDate,
DateTime? LizhiDate,
DateTime? ZhuanzhengDate,
bool IsZhuanzheng,
string JinjiLianxiren,
string JinjiLianxirenPhone,
string HetongType,
DateTime? HetongStartDate,
DateTime? HetongEndDate,
DateTime? TuixiuDate,
DateTime? ShebaoDate,
string ShebaoDesc,
string BankcardCode,
string BiyeYuanxiao,
string Zhuanye,
string Xueli,
string WorkGroup,
int Sort,
string NamePinyin,
string Memo,
string LizhiYuanyin);
/// <summary>职工变更记录读模型</summary>
public record EmployeeChangeRecordDto(
long Id,
long EmployeeId,
DateTime Date,
Employee_ChangeStatus_Enum ChangeStatus,
string ChangeStatusName,
string ChangeShuoming,
string ChangeYuanyin);
/// <summary>职工调岗记录读模型</summary>
public record EmployeeTiaogangRecordDto(
long Id,
long EmployeeId,
long OldDepId,
string OldDepName,
long OldWorktypeId,
string OldWorktypeName,
long NewDepId,
string NewDepName,
long NewWorktypeId,
string NewWorktypeName,
DateTime TiaogangDate);