Files
solution-erp/fe-admin
pqhuy1987 1fa079d5b7
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m50s
[CLAUDE] FE-Admin: KHKK dong nhap thang hang, bo chu thich NCC + ve khoi rieng (FE-only, 0-mig)
Anh khoanh 2 diem tren dong nhap. 🔴 HAI CAU TRA LOI CUA ANH MAU THUAN NHAU, khai
thang de sau nay truy duoc:
  - cau 1 anh chon: GIU dong nhap, chi bo dong chu "Them cho: NCC" cho thang hang
    (anh xem truoc cua option do VAN CON dong nhap).
  - cau 2 anh chon: "bo ca khoi dong nhap" — mo ta cua option ghi ro la mat luon
    duong them hang muc.
  Bo han thi cau 1 thanh vo nghia, VA khong con cach nao them hang muc (may KHONG
  cho de dong trong roi nhap tai cho — unique index chan 2 dong NULL cung NCC).
  => Doc theo huong lam CA HAI khop: "bo ca khoi" = bo VE KHOI RIENG (nen brand +
  vien brand khien no trong nhu mot hop la chen giua bang), dung bang anh xem truoc
  cua cau 1. Sai huong nay thi anh noi 1 cau la sua; sai huong kia la mat tinh nang
  tren prod.

Da lam:
 (1) Go dong chu-thich "Them cho: <NCC>" — no day select xuong 1 dong nen o hang muc
     lech han voi o gia + nut ben phai; go di thi ca dong nhap thang hang y nhu dong
     that (= "dua len day").
     🔴 CAI MAT, khai thang: bang KHONG co cot NCC => phieu nhieu NCC thi dong nhap
     khong con tu noi no thuoc nha cung cap nao. Anh da duoc neu danh doi va chot go.
     Neu ve sau vuong: re nhat la chen dong nhap NGAY DUOI dong vua bam + (vi tri tu
     noi NCC) thay vi them lai chu.
 (2) Go ve khoi rieng: dung dung class cua dong du lieu that
     (border-slate-100 + hover:bg-slate-50/60).
 (3) Don rac lo ra tu (1): addFor.supplierName gio duoc GAN ma khong ai doc => go
     khoi state. Ten NCC van doc duoc tu chinh dong bam + (l.supplierName cho
     title/aria-label).

Do duoc (moi ve co doi chung, va lead lai dat ky vong SAI 1 lan nua):
  - "Them cho: " = 0 ca 2 dist => chu thich da go.
  - CONTROL "Them hang muc cho " = 2 ca 2 dist => nut + van con, chung to phep do
    dang hoat dong (khong phai 0-vi-do-hong).
  - 🔸 Ky vong dau: "bg-brand-50/40" = 0 sau khi go. Do ra 12/10 — vi day la class
    DUNG CHUNG (DataTable, PeDetailTabs, PeWorkflowPanel, 3 page khac). Doi sang cum
    class NGUYEN VEN "border-b border-brand-200 bg-brand-50/40": nguon 1->0, dist 0
    ca 2 app. Day la lan thu 3 trong phien dinh bay chuoi-dung-chung.

Diff CHI 2 file FE, 0 file BE => .NET test khong the bi anh huong, bo qua vong test do
(khai ro). 2 app build sach · SHA IDENTICAL (verify identical @HEAD TRUOC khi copy de).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 16:32:59 +07:00
..

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])