完善新版开单交互与移动布局,修复纸单号复制反馈

This commit is contained in:
黄健铭 committed 2026-12-04 21:52:39 -08:00
1 parent c594bf296f
commit f1a4e69f0d
20 files changed
+567 -91

No files matched your search

@@ -1,5 +1,5 @@
import { useState } from 'react';
import { Alert, Button, Card, Form, Input, Select, Typography } from 'antd';
import { useRef, useState } from 'react';
import { Alert, Button, Card, Form, Input, Select, Typography, type InputRef } from 'antd';
import { ArrowRightOutlined, LockOutlined, UserOutlined } from '@ant-design/icons';
import { BrandMark } from '../../components/BrandMark';
import { modeLabel } from '../../lib/format';
@@ -105,6 +105,7 @@ function LoginForm({
}) {
const [member, setMember] = useState('');
const [password, setPassword] = useState('');
const passwordRef = useRef<InputRef>(null);
return (
<form
className="login-form"
@@ -122,11 +123,15 @@ function LoginForm({
value={member || undefined}
placeholder="请选择账号"
options={options.map(row => ({ value: row.member, label: row.label }))}
onChange={setMember}
onChange={value => {
setMember(value);
window.setTimeout(() => passwordRef.current?.focus(), 0);
}}
/>
</Form.Item>
<Form.Item label="密码" required>
<Input.Password
ref={passwordRef}
name="password"
aria-label="密码"
prefix={<LockOutlined className="input-icon" />}