Compare commits
No commits in common. "b283bda007adb792d384e87db22711df42c7422f" and "796640a4918bce8f6eb9dc5ebe11de4f00ab5700" have entirely different histories.
b283bda007
...
796640a491
@ -26,7 +26,7 @@ import { useRealtime } from './contexts/RealtimeContext';
|
||||
import { toast } from 'react-toastify';
|
||||
import { CircularProgress } from '@mui/material';
|
||||
import { additionVspRowTable } from './constants/addingRowConfig';
|
||||
import { SelectVspModal } from './Modals/SelectVspModal';
|
||||
import { SelectVspModal } from './Modals/selectVspModal';
|
||||
import { getRowId } from './utils/rowUtils';
|
||||
|
||||
const RealtimeTable = ({ formType, formId, sheetName, direction }) => {
|
||||
|
||||
@ -95,7 +95,7 @@ const ModalEditAddVsp = ({
|
||||
: null,
|
||||
notes: initialData.notes || '',
|
||||
location_form: initialData.location_form || '',
|
||||
numbers: initialData.staff_count?.toString() || '',
|
||||
numbers: initialData.numbers?.toString() || '',
|
||||
area: initialData.area || null,
|
||||
rent_contract_num: initialData.rent_contract_num || '',
|
||||
rent_end_date: initialData.rent_end_date
|
||||
@ -215,7 +215,7 @@ const ModalEditAddVsp = ({
|
||||
|
||||
const submitData = {
|
||||
...formData,
|
||||
numbers: formData.staff_count ? parseInt(formData.staff_count, 10) : null,
|
||||
numbers: formData.numbers ? parseInt(formData.numbers, 10) : null,
|
||||
area: formData.area ? parseFloat(formData.area) : null,
|
||||
open_date: formData.open_date
|
||||
? formData.open_date.toLocaleDateString('en-CA')
|
||||
@ -495,11 +495,11 @@ const ModalEditAddVsp = ({
|
||||
<FieldLabel>Штатная численность ВСП</FieldLabel>
|
||||
<StyledTextField
|
||||
type="text"
|
||||
value={formData.staff_count}
|
||||
value={formData.numbers}
|
||||
onChange={handleNumberChange('numbers')}
|
||||
placeholder="Введите численность"
|
||||
error={!!errors.staff_count}
|
||||
helperText={errors.staff_count}
|
||||
error={!!errors.numbers}
|
||||
helperText={errors.numbers}
|
||||
disabled={loading}
|
||||
slotProps={{
|
||||
htmlInput: { min: 1, step: 1 },
|
||||
|
||||
@ -204,7 +204,7 @@ const TableDictVsp = ({
|
||||
enableSorting: false,
|
||||
},
|
||||
{
|
||||
accessorKey: 'staff_count',
|
||||
accessorKey: 'numbers',
|
||||
header: 'Штатная численность ВСП',
|
||||
size: 170,
|
||||
minSize: 140,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user