[CLAUDE] PE: Dropdown quy trình duyệt chỉ ở Duyệt (Inbox), bỏ ở Danh sách
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 3m11s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 3m11s
User feedback: "Danh sách sửa lại như cũ nhé, cho hiển thị hết tất cả các phiếu nhé." → Đảo ngược điều kiện hiển thị Select "Tất cả quy trình duyệt": - TRƯỚC: hiện cả 2 view (Duyệt + Danh sách) - SAU: CHỈ hiện ở Duyệt (pendingMe=1) Lý do: Danh sách = view tổng (tất cả phiếu), không cần filter quy trình. Duyệt = inbox chờ tôi duyệt → cần filter quy trình để focus. Trạng thái dropdown giữ ở cả 2 view. Files (mirror cả 2 app): - fe-admin/src/pages/pe/PurchaseEvaluationsListPage.tsx - fe-user/src/pages/pe/PurchaseEvaluationsListPage.tsx Verify: 2 FE builds OK.
This commit is contained in:
@ -138,8 +138,10 @@ export function PurchaseEvaluationsListPage() {
|
||||
className="pl-8"
|
||||
/>
|
||||
</div>
|
||||
{/* Mig 23 — 2 dropdown tách: Quy trình duyệt + Trạng thái.
|
||||
Hiển thị cả 2 view (Duyệt + Danh sách) — user feedback. */}
|
||||
{/* Mig 23 — Dropdown quy trình duyệt CHỈ ở "Duyệt" (pendingMe).
|
||||
Danh sách giữ nguyên (chỉ filter trạng thái) — user feedback
|
||||
muốn Danh sách show hết phiếu không filter quy trình. */}
|
||||
{pendingMe && (
|
||||
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
||||
<option value="">Tất cả quy trình duyệt</option>
|
||||
{approvalWorkflows.data?.map(w => (
|
||||
@ -148,6 +150,7 @@ export function PurchaseEvaluationsListPage() {
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
)}
|
||||
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
||||
<option value="">Tất cả trạng thái</option>
|
||||
{Object.values(PeDisplayStatus).map(s => {
|
||||
|
||||
@ -138,8 +138,10 @@ export function PurchaseEvaluationsListPage() {
|
||||
className="pl-8"
|
||||
/>
|
||||
</div>
|
||||
{/* Mig 23 — 2 dropdown tách: Quy trình duyệt + Trạng thái.
|
||||
Hiển thị cả 2 view (Duyệt + Danh sách) — user feedback. */}
|
||||
{/* Mig 23 — Dropdown quy trình duyệt CHỈ ở "Duyệt" (pendingMe).
|
||||
Danh sách giữ nguyên (chỉ filter trạng thái) — user feedback
|
||||
muốn Danh sách show hết phiếu không filter quy trình. */}
|
||||
{pendingMe && (
|
||||
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
||||
<option value="">Tất cả quy trình duyệt</option>
|
||||
{approvalWorkflows.data?.map(w => (
|
||||
@ -148,6 +150,7 @@ export function PurchaseEvaluationsListPage() {
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
)}
|
||||
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
||||
<option value="">Tất cả trạng thái</option>
|
||||
{Object.values(PeDisplayStatus).map(s => {
|
||||
|
||||
Reference in New Issue
Block a user