Skip to content

feat(inbound): add employee import receipt list UI - #23

Merged
ThienlocTran merged 1 commit into
devfrom
feature/T85-employee-import-receipt-list-ui
Jun 18, 2026
Merged

ThienlocTran merged 1 commit into
devfrom
feature/T85-employee-import-receipt-list-ui

Conversation

@ThienlocTran

Copy link
Copy Markdown
Owner

No description provided.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

Summary by CodeRabbit

Cập nhật

  • New Features
    • Thêm chức năng hiển thị danh sách phiếu nhập kho với phân trang tự động và lọc theo trạng thái.
    • Hỗ trợ các thao tác trên phiếu nhập kho như sửa, xem, gửi duyệt, hủy dựa trên trạng thái.
    • Cải thiện giao diện hiển thị thông tin kho, nhà cung cấp, ngày tháng và tổng tiền phiếu nhập.

Walkthrough

Thêm mới importReceiptService.js với Axios client, hàm getMyImportReceipts gọi endpoint phân trang/lọc, và chuẩn hóa lỗi HTTP. StockDocumentsView.vue được mở rộng thành trang danh sách phiếu nhập với lọc trạng thái, DataTable có slot actions theo quyền, phân trang, và redirect khi 401.

Changes

Import Receipt List Feature

Layer / File(s) Summary
Import Receipt API service
src/services/importReceiptService.js
Tạo Axios client với baseURL từ env, hàm getMyImportReceipts gọi /api/import-receipts/my với tham số page/size/status, và normalizeImportReceiptError xử lý 3 trường hợp: 401 gọi clearAuth, có response.data trả {status, message, errors}, không có response trả fallback string.
StockDocumentsView: script logic, template, styles
src/views/StockDocumentsView.vue
Bổ sung Composition API state phân trang/lọc, cấu hình cột, helpers định dạng ngày/tiền và badge trạng thái, hàm fetchReceipts gọi service với redirect khi 401; template render theo type với filter bar, DataTable slot-based, actions có điều kiện, thanh phân trang; CSS scoped hỗ trợ layout mới.
Finishing Touches
Generate docstrings
  • Create stacked PR
  • Commit on current branch
Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/T85-employee-import-receipt-list-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant