完善备注信息
This commit is contained in:
@@ -881,6 +881,8 @@ export interface OutputReportSendInfo {
|
||||
country_name?: string | null;
|
||||
/** 寄送地址 */
|
||||
address_content?: string | null;
|
||||
/** 备注 */
|
||||
address_remark?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -906,6 +908,8 @@ export interface InputExpressContact {
|
||||
country_name: string;
|
||||
/** 寄送详细地址 */
|
||||
address_content: string;
|
||||
/** 备注 */
|
||||
address_remark: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user