crap
This commit is contained in:
@@ -39,7 +39,7 @@ const CreateDealButton: FC<Props> = () => {
|
||||
DealService.quickCreateDealQuickCreatePost({
|
||||
requestBody: {
|
||||
...quickDeal,
|
||||
acceptance_date: dateWithoutTimezone(quickDeal.acceptance_date)
|
||||
acceptanceDate: dateWithoutTimezone(quickDeal.acceptanceDate)
|
||||
}
|
||||
})
|
||||
}}
|
||||
|
||||
@@ -14,10 +14,10 @@ const CreateDealFrom: FC<Props> = ({onSubmit, onCancel}) => {
|
||||
const form = useForm({
|
||||
initialValues: {
|
||||
name: '',
|
||||
client_name: '',
|
||||
client_address: '',
|
||||
clientName: '',
|
||||
clientAddress: '',
|
||||
comment: '',
|
||||
acceptance_date: new Date()
|
||||
acceptanceDate: new Date()
|
||||
}
|
||||
});
|
||||
return (
|
||||
@@ -43,8 +43,8 @@ const CreateDealFrom: FC<Props> = ({onSubmit, onCancel}) => {
|
||||
<div className={styles['inputs']}>
|
||||
<ClientAutocomplete
|
||||
withAddress
|
||||
nameRestProps={form.getInputProps('client_name')}
|
||||
addressRestProps={form.getInputProps('client_address')}
|
||||
nameRestProps={form.getInputProps('clientName')}
|
||||
addressRestProps={form.getInputProps('clientAddress')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@ const CreateDealFrom: FC<Props> = ({onSubmit, onCancel}) => {
|
||||
<div className={styles['inputs']}>
|
||||
<DateTimePicker
|
||||
placeholder={'Дата приемки'}
|
||||
{...form.getInputProps('acceptance_date')}
|
||||
{...form.getInputProps('acceptanceDate')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ const DealSummaryCard: FC<Props> = ({dealSummary}) => {
|
||||
<div className={styles['flex-row']}>
|
||||
<div className={styles['flex-item']}>
|
||||
<Text size={"sm"} c={"gray.6"}>
|
||||
{dealSummary.client_name}
|
||||
{dealSummary.clientName}
|
||||
</Text>
|
||||
</div>
|
||||
<div className={styles['flex-item']}>
|
||||
@@ -23,14 +23,14 @@ const DealSummaryCard: FC<Props> = ({dealSummary}) => {
|
||||
</div>
|
||||
<div className={styles['flex-item']}>
|
||||
<Text size={"sm"} c={"gray.6"}>
|
||||
{dealSummary.total_price.toLocaleString('ru-RU')} руб
|
||||
{dealSummary.totalPrice.toLocaleString('ru-RU')} руб
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
<div className={classNames(styles['flex-row'], styles['flex-row-right'])}>
|
||||
<div className={styles['flex-item']}>
|
||||
<Text size={"sm"} c={"gray.6"}>
|
||||
{new Date(dealSummary.changed_at).toLocaleString('ru-RU')}
|
||||
{new Date(dealSummary.changedAt).toLocaleString('ru-RU')}
|
||||
</Text>
|
||||
</div>
|
||||
<div className={styles['flex-item']}>
|
||||
|
||||
Reference in New Issue
Block a user