Spaces:
Running
Running
Deploy af8d7b7 từ GitHub Actions
Browse filesFiles changed (2)
28 unmodified lines293031323233343528 unmodified lines </div> <div className="grid4"> <Field label="Phân tách khách hàng (mã đoàn)"><input value={t.groupCode ?? ''} placeholder="VD: WH3010MC104XE1" onChange={(e) => set({ groupCode: e.target.value.toUpperCase() })} /></Field> <Field label="Mã lô" hint="(tự điền; có thì tên file = mã lô + ngày giờ)"><input value={t.lotCode ?? ''} placeholder="VD: V200" onChange={(e) => set({ lotCode: e.target.value.toUpperCase() })} /></Field> <Field label="Mã lô" hint="(có thì dùng đặt tên file xuất)"><input value={t.lotCode ?? ''} placeholder="VD: V200" onChange={(e) => set({ lotCode: e.target.value.toUpperCase() })} /></Field> <Field label="Ngày nhập cảnh" required><DateInput value={t.entryDate ?? ''} onChange={(v) => set({ entryDate: v })} /></Field> <Field label="Số ngày lưu trú" required><input type="number" min={1} max={365} value={t.stayDays ?? ''} onChange={(e) => set({ stayDays: Number(e.target.value) || undefined })} /></Field> <Field label="Ngày xuất cảnh" hint="(tự tính)"><input className="mono" disabled value={vnDate(exit)} placeholder="dd/mm/yyyy" /></Field>12 unmodified lines1314151616171819244 unmodified lines26426526626726826927027127227327427526726826927027127212 unmodified linesexport interface TripInfo { /** Phân tách khách hàng (mã đoàn), VD WH3010MC104XE1 */ groupCode?: string; /** Mã lô (VD V200); có thì tên file xuất dùng mã lô thay cho mã đoàn */ /** Mã lô (VD V200); có thì tên file xuất dùng mã lô */ lotCode?: string; /** Ngày nhập cảnh YYYY-MM-DD */ entryDate?: string;244 unmodified lines });}
/** Mã lô + ngày giờ phút giây (giờ VN): V200-20261116153045 */export function lotStamp(lotCode: string, now = new Date()): string { const vn = new Date(now.getTime() + 7 * 3600_000).toISOString(); // YYYY-MM-DDTHH:mm:ss.sssZ return `${safeName(lotCode)}-${vn.slice(0, 19).replace(/\D/g, '')}`;}
/** Tên file theo mẫu: "Thông tin hộ chiếu - <mã đoàn | mã lô+giờ>.xlsx" */export function dvcFileName(groupCode: string, lotCode?: string, now?: Date): string { const code = lotCode?.trim() ? lotStamp(lotCode, now) : safeName(groupCode);/** Tên file theo mẫu: "Thông tin hộ chiếu - <mã lô | mã đoàn>.xlsx" */export function dvcFileName(groupCode: string, lotCode?: string): string { const code = safeName(lotCode ?? '') || safeName(groupCode); return `Thông tin hộ chiếu - ${code || 'DOAN'}.xlsx`;}
passport-check/apps/web/src/components/TripForm.tsx+1-1
passport-check/packages/core/src/visa.ts+4-10