diff --git a/src/features/slaughter-house/components/enter-load-information/EnterLoadInformation.js b/src/features/slaughter-house/components/enter-load-information/EnterLoadInformation.js index ee26b87..e3c3a17 100644 --- a/src/features/slaughter-house/components/enter-load-information/EnterLoadInformation.js +++ b/src/features/slaughter-house/components/enter-load-information/EnterLoadInformation.js @@ -9,7 +9,7 @@ import { SPACING } from "../../../../data/spacing"; import { DatePicker } from "@mui/x-date-pickers"; import { LOADING_END, - LOADING_START, + LOADING_START } from "../../../../lib/redux/slices/appSlice"; import { useDispatch, useSelector } from "react-redux"; import { format } from "date-fns-jalali"; @@ -29,7 +29,7 @@ const ROLES = { SUPER_ADMIN: "SuperAdmin", VET_SUPERVISOR: "VetSupervisor", VET_FARM: "VetFarm", - CITY_VET: "CityVet", + CITY_VET: "CityVet" }; const DEFAULT_PER_PAGE = 10; @@ -63,7 +63,7 @@ const buildApiUrl = (params) => { date1: date1 || "", date2: date2 || "", page: page || DEFAULT_PAGE, - page_size: perPage || DEFAULT_PER_PAGE, + page_size: perPage || DEFAULT_PER_PAGE }); if (roleKey) { @@ -77,7 +77,7 @@ const isTrafficCodeEditable = (role, item) => { const adminRoles = [ ROLES.PROVINCE_OPERATOR, ROLES.SUPER_ADMIN, - ROLES.VET_SUPERVISOR, + ROLES.VET_SUPERVISOR ]; if (adminRoles.includes(role)) { @@ -136,7 +136,7 @@ export const EnterLoadInformation = () => { if (isKillHouse) { dispatch( slaughterGetPermissionToVetService({ - role_key: roleKey, + role_key: roleKey }) ).then((r) => { setChecked(r.payload.data?.[0]?.allow || false); @@ -156,7 +156,7 @@ export const EnterLoadInformation = () => { date2: selectedDate2, page: pageNumber, perPage, - roleKey, + roleKey }); const response = await axios.get(url); @@ -176,7 +176,7 @@ export const EnterLoadInformation = () => { perPage, roleKey, page, - dispatch, + dispatch ] ); @@ -187,7 +187,7 @@ export const EnterLoadInformation = () => { selectedDate1, selectedDate2, text: textValue, - role_key: roleKey, + role_key: roleKey }) ).then((r) => { setDashboardData(r.payload.data); @@ -216,7 +216,7 @@ export const EnterLoadInformation = () => { {item.barCode} , { item?.barDocumentStatus?.title || "-", item?.finalBarState || "-", item?.poultryRequest?.freezing ? "انجماد" : "عادی", + item?.poultryRequest?.freeSaleInProvince + ? "فروش آزاد" + : "فروش دولتی" || "-" ]); setTableData(transformedData || []); @@ -311,7 +314,7 @@ export const EnterLoadInformation = () => { const newValue = !checked; dispatch( slaughterPermissionToVetService({ - allow: newValue, + allow: newValue }) ); setChecked(newValue); @@ -323,7 +326,7 @@ export const EnterLoadInformation = () => { "مجموع تعداد اولیه", "مجموع وزن اولیه (کیلوگرم)", "مجموع تعداد تحویلی دامپزشک", - "مجموع وزن تحویلی دامپزشک (کیلوگرم)", + "مجموع وزن تحویلی دامپزشک (کیلوگرم)" ]; const tableColumns = [ @@ -347,6 +350,7 @@ export const EnterLoadInformation = () => { "وضعیت سند", "وضعیت بار", "نوع کشتار", + "نوع فروش" ]; const dashboardRow = [ @@ -354,7 +358,7 @@ export const EnterLoadInformation = () => { formatNumber(dashboardData?.firstQuantity), formatNumber(dashboardData?.firstWeight), formatNumber(dashboardData?.vetAcceptedRealQuantity), - formatNumber(dashboardData?.vetAcceptedRealWeight), + formatNumber(dashboardData?.vetAcceptedRealWeight) ]; return (