[CLAUDE] PurchaseEvaluation: thêm "Quy trình duyệt" vào checklist gửi-duyệt (anh Kiệt FDC UAT R4)
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m12s

Phiếu cũ thiếu workflow (tạo lúc bundle cũ chưa có D5 auto-chọn) → checklist D4 toàn xanh
nhưng submit chặn "chưa chọn quy trình" = MISLEADING. Bổ sung dòng "Quy trình duyệt" vào
checklist (xanh ✓ khi có workflow, đỏ ✗ khi thiếu) → người dùng thấy đúng blocker.

3 phiếu thiếu workflow đã fix prod-data (gán QT-DN-V2-001 cho type-1). R4 auto-assign-at-submit
đã thử nhưng REVERT: phá 2 test S83 (test-DB có sẵn workflow → auto-gán thay vì block) + nới
block ngược ý "ràng". SQL fix + create-block/D5 (R1) đã đủ chặn phiếu thiếu workflow.

FE-only PeDetailTabs ×2 app SHA-identical. Both build PASS, test 371 (revert verified).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
pqhuy1987
2026-06-23 15:07:40 +07:00
parent e3e40ae346
commit 34218f0493
2 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,7 @@ export function PeDetailTabs({
const gia = supplierOk ? computeGiaChaoThau(evaluation) : null
const effBudget = evaluation.budgetPeriodAmount ?? evaluation.budgetSummary?.proInitialAmount ?? null
return [
{ label: 'Quy trình duyệt', ok: evaluation.approvalWorkflowId != null },
{ label: 'Đơn vị NCC/TP được chọn', ok: supplierOk },
{ label: 'Giá chào thầu của đơn vị > 0', ok: gia != null && gia > 0 },
{ label: 'Ngân sách kỳ này', ok: effBudget != null && effBudget > 0 },

View File

@ -231,6 +231,7 @@ export function PeDetailTabs({
const gia = supplierOk ? computeGiaChaoThau(evaluation) : null
const effBudget = evaluation.budgetPeriodAmount ?? evaluation.budgetSummary?.proInitialAmount ?? null
return [
{ label: 'Quy trình duyệt', ok: evaluation.approvalWorkflowId != null },
{ label: 'Đơn vị NCC/TP được chọn', ok: supplierOk },
{ label: 'Giá chào thầu của đơn vị > 0', ok: gia != null && gia > 0 },
{ label: 'Ngân sách kỳ này', ok: effBudget != null && effBudget > 0 },