完善备注信息

This commit is contained in:
xianyi
2025-12-25 14:36:54 +08:00
parent 52cec7f3e3
commit 6b9c55c50e
2 changed files with 11 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export const ExamDeliveryPanel = ({ client }: { client: ExamClient }) => {
const [cityName, setCityName] = useState('');
const [countryName, setCountryName] = useState('');
const [addressContent, setAddressContent] = useState('');
const [addressRemark, setAddressRemark] = useState('');
const [saveLoading, setSaveLoading] = useState(false);
const [saveMessage, setSaveMessage] = useState<string | null>(null);
const [infoLoading, setInfoLoading] = useState(false);
@@ -52,6 +53,9 @@ export const ExamDeliveryPanel = ({ client }: { client: ExamClient }) => {
if (data.address_content) {
setAddressContent(data.address_content);
}
if (data.address_remark) {
setAddressRemark(data.address_remark);
}
}
})
.catch((err) => {
@@ -174,6 +178,8 @@ export const ExamDeliveryPanel = ({ client }: { client: ExamClient }) => {
<textarea
className='w-full rounded-2xl border px-3 py-2 text-xs outline-none focus:ring-2 focus:ring-gray-200 min-h-[80px]'
placeholder='如需多份报告、加急寄送等,请在此备注'
value={addressRemark}
onChange={(e) => setAddressRemark(e.target.value)}
/>
</div>
{saveMessage && (
@@ -234,6 +240,7 @@ export const ExamDeliveryPanel = ({ client }: { client: ExamClient }) => {
city_name: cityName.trim(),
country_name: countryName.trim(),
address_content: addressContent.trim(),
address_remark: addressRemark.trim(),
});
if (res.Status === 200 && res.Data?.is_success === 1) {