[CLAUDE] PurchaseEvaluation: rename 71 WorkItems theo format PMH anh Kiet FDC chot (MAT-n/SUB-n/MEP-SUB-n/MEP-EQU-n + ten "STT nhom ten") + FE sort numeric
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m33s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m33s
- anh Kiet 16:59: "MA CV gom chu MEP-SUB-1 roi ten 1 MEP Sub MEP (Full) - dung kieu vay". - DbInitializer seed tuples 71 ma moi (VT->MAT, TP->SUB, MEP-0n->MEP-SUB-n, TB->MEP-EQU-n). - scripts/s59-rename-workitems-pmh.sql DA CHAY prod + LocalDB Dev TRUOC push (UPDATE giu Id, 71/71, OLD-CODES=0, verify JSON qua API prod tieng Viet nguyen ven). - FE x2 app (SHA256 mirror): PeWorkspaceCreateView + PeHeaderForm sort numeric-aware (ma khong pad -> string-sort loan "10"<"2") + tree Panel 1 workItemName numeric:true. - scripts/master-import-data.generated.md sync 71 dong W| + note mapping.
This commit is contained in:
@ -59,10 +59,14 @@ export function PeHeaderForm({
|
||||
})
|
||||
|
||||
// S57bis — list Hạng mục công việc (active only, mirror PeWorkspaceCreateView).
|
||||
// S59 — sort numeric-aware client (mã PMH không pad số — mirror CreateView).
|
||||
const workItems = useQuery({
|
||||
queryKey: ['catalogs', 'work-items'],
|
||||
queryFn: async () => (await api.get<WorkItemOption[]>('/catalogs/work-items')).data,
|
||||
select: rows => rows.filter(r => r.isActive !== false),
|
||||
select: rows => rows
|
||||
.filter(r => r.isActive !== false)
|
||||
.sort((a, b) => (a.category ?? '').localeCompare(b.category ?? '', 'vi')
|
||||
|| a.code.localeCompare(b.code, 'vi', { numeric: true })),
|
||||
})
|
||||
|
||||
const [form, setForm] = useState({
|
||||
|
||||
Reference in New Issue
Block a user