feat: 支持单位工程排序并统一委托单号生成与编辑

支持按业务序号展示单位工程,并使页面与 API 使用一致的委托单编号规则;允许有修改权限的用户调整委托单号。附带序号字段及修改按钮权限的数据库升级脚本。
This commit is contained in:
2026-10-14 15:13:10 +08:00
parent e00a3ddcf0
commit 0c7bf3c292
69 changed files with 252 additions and 105 deletions
@@ -258,7 +258,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
&& x.SuperUnitWork == null
&& x.UnitId != null
&& x.ProjectType != null
orderby x.UnitWorkCode
orderby x.SerialNumber, x.UnitWorkCode
select x).ToList();
// 优化2: 批量获取所有相关管线数据,避免N+1查询问题