|
|
@@ -1,5 +1,5 @@
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
-import { Row, Col, Input, Select, Form } from 'antd';
|
|
|
+import { Row, Col, Input, Select, Form, AutoComplete } from 'antd';
|
|
|
import { useDiagnosticData } from '@/hooks/useDiagnosticData';
|
|
|
import { PlusOutlined } from '@ant-design/icons';
|
|
|
import { DepartmentModal } from './DepartmentModal';
|
|
|
@@ -46,6 +46,7 @@ export const BaseInfo: React.FC = () => {
|
|
|
const departments = useAppSelector(
|
|
|
(state: RootState) => state.department.departments
|
|
|
);
|
|
|
+ const { nickname } = useAppSelector((state: RootState) => state.userInfo);
|
|
|
const examinationPhysicians = useAppSelector(
|
|
|
(state: RootState) => state.examinationPhysician.names
|
|
|
);
|
|
|
@@ -86,6 +87,7 @@ export const BaseInfo: React.FC = () => {
|
|
|
getExaminationPhysicianData();
|
|
|
getReviewPhysicianData();
|
|
|
getSexOption();
|
|
|
+ setRadiologist(nickname);
|
|
|
}, []);
|
|
|
|
|
|
return (
|
|
|
@@ -118,7 +120,7 @@ export const BaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col> */}
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="病案号">
|
|
|
+ <Form.Item label="患者编号/病案号">
|
|
|
<Input
|
|
|
disabled
|
|
|
value={medical_record_number}
|
|
|
@@ -221,13 +223,16 @@ export const BaseInfo: React.FC = () => {
|
|
|
|
|
|
<Col span={6}>
|
|
|
<Form.Item label="检查医师">
|
|
|
- <Select
|
|
|
+ <AutoComplete
|
|
|
+ allowClear
|
|
|
style={{ width: '90%' }}
|
|
|
+ options={examinationPhysicians.map((item) => ({
|
|
|
+ label: item.name,
|
|
|
+ value: item.name,
|
|
|
+ }))}
|
|
|
value={radiologist}
|
|
|
- fieldNames={{ label: 'name', value: 'name' }}
|
|
|
- onChange={(v) => setRadiologist(v)}
|
|
|
- options={examinationPhysicians}
|
|
|
- />
|
|
|
+ onChange={setRadiologist}
|
|
|
+ ></AutoComplete>
|
|
|
</Form.Item>
|
|
|
<PlusOutlined
|
|
|
style={{
|
|
|
@@ -242,13 +247,16 @@ export const BaseInfo: React.FC = () => {
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
<Form.Item label="审核医师">
|
|
|
- <Select
|
|
|
+ <AutoComplete
|
|
|
+ allowClear
|
|
|
style={{ width: '90%' }}
|
|
|
+ options={reviewPhysicians.map((item) => ({
|
|
|
+ label: item.name,
|
|
|
+ value: item.name,
|
|
|
+ }))}
|
|
|
value={reviewPhysician}
|
|
|
- fieldNames={{ label: 'name', value: 'name' }}
|
|
|
- onChange={(v) => setReviewPhysician(v)}
|
|
|
- options={reviewPhysicians}
|
|
|
- />
|
|
|
+ onChange={setReviewPhysician}
|
|
|
+ ></AutoComplete>
|
|
|
</Form.Item>
|
|
|
<PlusOutlined
|
|
|
style={{
|