[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,16 +138,19 @@ export function PurchaseEvaluationsListPage() {
|
|||||||
className="pl-8"
|
className="pl-8"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/* Mig 23 — 2 dropdown tách: Quy trình duyệt + Trạng thái.
|
{/* Mig 23 — Dropdown quy trình duyệt CHỈ ở "Duyệt" (pendingMe).
|
||||||
Hiển thị cả 2 view (Duyệt + Danh sách) — user feedback. */}
|
Danh sách giữ nguyên (chỉ filter trạng thái) — user feedback
|
||||||
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
muốn Danh sách show hết phiếu không filter quy trình. */}
|
||||||
<option value="">Tất cả quy trình duyệt</option>
|
{pendingMe && (
|
||||||
{approvalWorkflows.data?.map(w => (
|
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
||||||
<option key={w.id} value={w.id}>
|
<option value="">Tất cả quy trình duyệt</option>
|
||||||
{w.code} v{String(w.version).padStart(2, '0')} — {w.name}
|
{approvalWorkflows.data?.map(w => (
|
||||||
</option>
|
<option key={w.id} value={w.id}>
|
||||||
))}
|
{w.code} v{String(w.version).padStart(2, '0')} — {w.name}
|
||||||
</Select>
|
</option>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
)}
|
||||||
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
||||||
<option value="">Tất cả trạng thái</option>
|
<option value="">Tất cả trạng thái</option>
|
||||||
{Object.values(PeDisplayStatus).map(s => {
|
{Object.values(PeDisplayStatus).map(s => {
|
||||||
|
|||||||
@ -138,16 +138,19 @@ export function PurchaseEvaluationsListPage() {
|
|||||||
className="pl-8"
|
className="pl-8"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/* Mig 23 — 2 dropdown tách: Quy trình duyệt + Trạng thái.
|
{/* Mig 23 — Dropdown quy trình duyệt CHỈ ở "Duyệt" (pendingMe).
|
||||||
Hiển thị cả 2 view (Duyệt + Danh sách) — user feedback. */}
|
Danh sách giữ nguyên (chỉ filter trạng thái) — user feedback
|
||||||
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
muốn Danh sách show hết phiếu không filter quy trình. */}
|
||||||
<option value="">Tất cả quy trình duyệt</option>
|
{pendingMe && (
|
||||||
{approvalWorkflows.data?.map(w => (
|
<Select value={approvalWorkflowId} onChange={e => setParam('awId', e.target.value)}>
|
||||||
<option key={w.id} value={w.id}>
|
<option value="">Tất cả quy trình duyệt</option>
|
||||||
{w.code} v{String(w.version).padStart(2, '0')} — {w.name}
|
{approvalWorkflows.data?.map(w => (
|
||||||
</option>
|
<option key={w.id} value={w.id}>
|
||||||
))}
|
{w.code} v{String(w.version).padStart(2, '0')} — {w.name}
|
||||||
</Select>
|
</option>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
)}
|
||||||
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
<Select value={phase} onChange={e => setParam('phase', e.target.value)}>
|
||||||
<option value="">Tất cả trạng thái</option>
|
<option value="">Tất cả trạng thái</option>
|
||||||
{Object.values(PeDisplayStatus).map(s => {
|
{Object.values(PeDisplayStatus).map(s => {
|
||||||
|
|||||||
Reference in New Issue
Block a user