diff --git a/src/components/pages/flock/recording/form/RecordingForm.tsx b/src/components/pages/flock/recording/form/RecordingForm.tsx
index 2e137031..b75a49d7 100644
--- a/src/components/pages/flock/recording/form/RecordingForm.tsx
+++ b/src/components/pages/flock/recording/form/RecordingForm.tsx
@@ -26,6 +26,7 @@ import { ProductWarehouseApi } from '@/services/api/inventory';
import { ProjectFlock } from '@/types/api/production/project-flock';
import { Warehouse } from '@/types/api/master-data/warehouse';
import { LocationApi } from '@/services/api/master-data';
+import FieldMessage from '@/components/helper/FieldMessage';
interface RecordingFormProps {
type?: 'add' | 'edit' | 'detail';
@@ -621,20 +622,23 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
- {
- if (e.target.checked) {
- setSelectedFeed([...selectedFeed, idx]);
- } else {
- setSelectedFeed(
- selectedFeed.filter((i) => i !== idx)
- );
- }
- }}
- />
+
+ {
+ if (e.target.checked) {
+ setSelectedFeed([...selectedFeed, idx]);
+ } else {
+ setSelectedFeed(
+ selectedFeed.filter((i) => i !== idx)
+ );
+ }
+ }}
+ />
+
+
|
)}
@@ -741,17 +745,20 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
-
+
+
+
+
|
)}
@@ -834,20 +841,23 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
- {
- if (e.target.checked) {
- setSelectedWeight([...selectedWeight, idx]);
- } else {
- setSelectedWeight(
- selectedWeight.filter((i) => i !== idx)
- );
- }
- }}
- />
+
+ {
+ if (e.target.checked) {
+ setSelectedWeight([...selectedWeight, idx]);
+ } else {
+ setSelectedWeight(
+ selectedWeight.filter((i) => i !== idx)
+ );
+ }
+ }}
+ />
+
+
|
)}
@@ -944,17 +954,20 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
-
+
+
+
+
|
)}
@@ -1037,20 +1050,26 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
- {
- if (e.target.checked) {
- setSelectedVaccine([...selectedVaccine, idx]);
- } else {
- setSelectedVaccine(
- selectedVaccine.filter((i) => i !== idx)
- );
- }
- }}
- />
+
+ {
+ if (e.target.checked) {
+ setSelectedVaccine([
+ ...selectedVaccine,
+ idx,
+ ]);
+ } else {
+ setSelectedVaccine(
+ selectedVaccine.filter((i) => i !== idx)
+ );
+ }
+ }}
+ />
+
+
|
)}
@@ -1163,17 +1182,20 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
-
+
+
+
+
|
)}
@@ -1255,23 +1277,26 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
- {
- if (e.target.checked) {
- setSelectedMortality([
- ...selectedMortality,
- idx,
- ]);
- } else {
- setSelectedMortality(
- selectedMortality.filter((i) => i !== idx)
- );
- }
- }}
- />
+
+ {
+ if (e.target.checked) {
+ setSelectedMortality([
+ ...selectedMortality,
+ idx,
+ ]);
+ } else {
+ setSelectedMortality(
+ selectedMortality.filter((i) => i !== idx)
+ );
+ }
+ }}
+ />
+
+
|
)}
@@ -1335,17 +1360,20 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
-
+
+
+
+
|
)}