Repository navigation
feat(fe): bổ sung các màn đã duyệt cho 5 vai trò (chính sách, quá hạn, đối soát, hoàn cọc, hỗ trợ, lịch sử thanh toán) - #40
Merged
Conversation
…, đối soát, hoàn cọc, hỗ trợ, lịch sử thanh toán)
VectorNguyen
pushed a commit
that referenced
this pull request
Nov 12, 2026
VectorNguyen
pushed a commit
that referenced
this pull request
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mục tiêu
Bổ sung FE các màn còn thiếu theo thiết kế đã duyệt cho 5 vai trò: chính sách cho thuê, trả kho, quá hạn, đối soát, hoàn cọc, hỗ trợ khi chưa có hợp đồng, lịch sử thanh toán, đặt lại mật khẩu.
Chỉ sửa frontend và tài liệu; không sửa backend, DB, migration.
Các màn bổ sung
#/)reset-passwordpoliciespayments/historyrefundsunits/:id/depositunits/:id/progressunits/:id/renewal-statusinquiries,inquiries/:idstaff/mismatchstaff/renewal-paymentsstaff/overduestaff/inquiriesmanager/discrepancies,manager/discrepancy-detail?id=…manager/overduemanager/deposit-refundsbusiness/policy-contentbusiness/policy-statusbusiness/ratesbusiness/exportThay đổi ở màn có sẵn
reset-password. Bản cũ báo "đã gửi" nhưng không gọi API.policy.js.callActionném lỗi rõ khi thao tác chưa có endpoint, thay vì trảnull.Chế độ dữ liệu
npm run dev): endpoint chưa có thì báo lỗi rõ, giữ nội dung đang nhập, không giả thành công.npm run dev:demo): bật riêng, có băng "MÔ PHỎNG FE" trên đầu trang; dữ liệu nằm trong localStoragesafespace.approved-workflows.demo.v1.APPROVED-FE-API-GAPS.md.Đã sửa khi rà soát
main54abba6: giải xung đột với PR fix(fe): sửa lỗi C11, C14a, S04, S09, M07 #39 ởCancellationRefundPagevàprogress.md.PAIDthànhAPPROVED) → đối chiếu khoản thu RENEWAL đã thanh toán; không cho chọn "tại quầy" hai lần.Kiểm tra
npm run check:structure— PASSnpm test— 81/81npm run test:business— 9/9npm run test:workflows— 11/11npm run test:render— 115 route PASSnpm run build— PASS (còn cảnh báo bundle > 500 kB)npm run test:approved-ui— 25 màn desktop/mobile, không tràn ngang, không lỗi runtimenpm run test:workflow-actions— 10 nhóm thao tác (xác nhận/huỷ/lỗi/lặp/khác vai trò/CSV)npm run test:api-pending— API thiếu không giả thành công, giữ nội dung đang nhậpnpm run test:password-reset— sai mã, đúng mã, đăng nhập bằng mật khẩu mớiCòn chờ backend
Chi tiết ở
APPROVED-FE-API-GAPS.md:/api/ops/discrepancies,/api/ops/overdue-cases,/api/ops/deposit-refunds,/api/ops/counter-renewals,/api/support/inquiries,/api/rental-policy(GET + POST/actions).POST /api/auth/password-reset/requestvà/confirm(gửi email, mã có hạn, giới hạn số lần thử).POST /api/renewals/{id}/counter-payment(khách chọn trả gia hạn tại quầy).Cần nhóm xem
DECISIONS.md): quá hạn tính 5% cọc ban đầu mỗi ngày, tối đa 100%, đến mốc thì đưa đồ ra ngoài. D27 tính theo tham số OVERDUE ở B02 và phần vượt cọc thành công nợ; BE hiện vẫn tính theo D27, nên số FE xem trước có thể khác số BE quyết toán. Cần giao người cập nhật BE.manager/deposit-refunds(nhập mã giao dịch). Cần chốt một luồng trước khi làm API/api/ops/deposit-refunds.ForgotPasswordDialog: viết lại toàn bộ, mất phần chú thích của Ngọc Mai.