|
|
@@ -9,6 +9,7 @@ import {
|
|
|
import { useSelector } from 'react-redux';
|
|
|
import { useEffect } from 'react';
|
|
|
import { Task, TaskAnimal } from '@/domain/work';
|
|
|
+import { useIntl, FormattedMessage } from 'react-intl';
|
|
|
|
|
|
const { Option } = Select;
|
|
|
|
|
|
@@ -19,6 +20,10 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
(s: RootState) => s.workSelection.selectedIds
|
|
|
);
|
|
|
const workEntities = useSelector((s: RootState) => s.workEntities.data);
|
|
|
+ const productName = useSelector(
|
|
|
+ (s: RootState) => s.product.productName
|
|
|
+ );
|
|
|
+ const intl = useIntl();
|
|
|
console.log(`【诊断报告】:选中的study id :${selectedIds[0]}`);
|
|
|
const selectedStudy: Task | TaskAnimal | null =
|
|
|
selectedIds.length > 0
|
|
|
@@ -73,7 +78,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
<Form layout="vertical">
|
|
|
<Row gutter={12}>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="患者姓名">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id={productName === 'VETDROS' ? 'animal.register.patientName' : 'register.patientName'}
|
|
|
+ defaultMessage={productName === 'VETDROS' ? 'animal.register.patientName' : 'register.patientName'}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.patientName}
|
|
|
onChange={(e) => onChange('patientName', e.target.value)}
|
|
|
@@ -81,7 +93,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="性别">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="register.gender"
|
|
|
+ defaultMessage="register.gender"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Select
|
|
|
value={data.sex}
|
|
|
onChange={(v) => onDropdownChange('sex', v)}
|
|
|
@@ -92,7 +111,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="年龄">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="register.age"
|
|
|
+ defaultMessage="register.age"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.age}
|
|
|
onChange={(e) => onChange('age', e.target.value)}
|
|
|
@@ -100,7 +126,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="主人姓名">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="register.owner_name"
|
|
|
+ defaultMessage="register.owner_name"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.ownerName}
|
|
|
onChange={(e) => onChange('ownerName', e.target.value)}
|
|
|
@@ -108,7 +141,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="申请科室">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="report.requestingDepartment"
|
|
|
+ defaultMessage="report.requestingDepartment"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.requestingDepartment}
|
|
|
onChange={(e) => onChange('requestingDepartment', e.target.value)}
|
|
|
@@ -116,7 +156,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="检查号">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="report.inspectionNumber"
|
|
|
+ defaultMessage="report.inspectionNumber"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.inspectionNumber}
|
|
|
onChange={(e) => onChange('inspectionNumber', e.target.value)}
|
|
|
@@ -124,7 +171,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="检查方法">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="report.inspectionMethod"
|
|
|
+ defaultMessage="report.inspectionMethod"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.inspectionMethod}
|
|
|
onChange={(e) => onChange('inspectionMethod', e.target.value)}
|
|
|
@@ -132,7 +186,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="放射科医生">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="report.radiologist"
|
|
|
+ defaultMessage="report.radiologist"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.radiologist}
|
|
|
onChange={(e) => onChange('radiologist', e.target.value)}
|
|
|
@@ -140,7 +201,14 @@ export const AnimalBaseInfo: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={6}>
|
|
|
- <Form.Item label="审核医师">
|
|
|
+ <Form.Item
|
|
|
+ label={
|
|
|
+ <FormattedMessage
|
|
|
+ id="report.reviewPhysician"
|
|
|
+ defaultMessage="report.reviewPhysician"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ >
|
|
|
<Input
|
|
|
value={data.reviewPhysician}
|
|
|
onChange={(e) => onChange('reviewPhysician', e.target.value)}
|