fix: примечание для согласующих — после вложений, перед маршрутом
Инициатор пишет примечание, уже заполнив заявку, и сразу видит под ним, кому оно уйдёт. В просмотре согласующего порядок тот же; плашка вверху карточки не меняется. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -412,7 +412,6 @@ const RecruitingHireForm: React.FC<IRequestFormProps> = ({
|
|||||||
<PpeSection {...sectionProps} />
|
<PpeSection {...sectionProps} />
|
||||||
<ConditionsSection {...sectionProps} />
|
<ConditionsSection {...sectionProps} />
|
||||||
<AgencySection {...sectionProps} />
|
<AgencySection {...sectionProps} />
|
||||||
<NoteSection {...sectionProps} />
|
|
||||||
</FormModeProvider>
|
</FormModeProvider>
|
||||||
</FieldChangesProvider>
|
</FieldChangesProvider>
|
||||||
|
|
||||||
@@ -445,6 +444,14 @@ const RecruitingHireForm: React.FC<IRequestFormProps> = ({
|
|||||||
</CollapseSection>
|
</CollapseSection>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* Примечание — последним перед маршрутом: инициатор пишет его, уже
|
||||||
|
заполнив заявку, и видит рядом, кому оно уйдёт. */}
|
||||||
|
<FieldChangesProvider changes={toChangeMap(approverChanges)}>
|
||||||
|
<FormModeProvider readOnly={readOnly}>
|
||||||
|
<NoteSection {...sectionProps} />
|
||||||
|
</FormModeProvider>
|
||||||
|
</FieldChangesProvider>
|
||||||
|
|
||||||
<ApprovalMatrix
|
<ApprovalMatrix
|
||||||
editor={matrix}
|
editor={matrix}
|
||||||
search={(q) => approval.searchUsers(q)}
|
search={(q) => approval.searchUsers(q)}
|
||||||
|
|||||||
@@ -387,13 +387,19 @@ const RecruitingHireView: React.FC<IRecruitingHireViewProps> = ({ context, itemI
|
|||||||
<PpeSection {...sectionProps} />
|
<PpeSection {...sectionProps} />
|
||||||
<ConditionsSection {...sectionProps} />
|
<ConditionsSection {...sectionProps} />
|
||||||
<AgencySection {...sectionProps} />
|
<AgencySection {...sectionProps} />
|
||||||
<NoteSection {...sectionProps} />
|
|
||||||
</FormModeProvider>
|
</FormModeProvider>
|
||||||
</FieldChangesProvider>
|
</FieldChangesProvider>
|
||||||
|
|
||||||
<div className="rp-no-print">
|
<div className="rp-no-print">
|
||||||
<HireAttachments editor={attachments} editable={fullEditable} />
|
<HireAttachments editor={attachments} editable={fullEditable} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Тот же порядок, что в форме подачи: примечание — после вложений, перед маршрутом. */}
|
||||||
|
<FieldChangesProvider changes={toChangeMap(approverChanges)}>
|
||||||
|
<FormModeProvider readOnly={!fullEditable}>
|
||||||
|
<NoteSection {...sectionProps} />
|
||||||
|
</FormModeProvider>
|
||||||
|
</FieldChangesProvider>
|
||||||
</FormCard>
|
</FormCard>
|
||||||
|
|
||||||
{routeError && <Alert variant="err">{routeError}</Alert>}
|
{routeError && <Alert variant="err">{routeError}</Alert>}
|
||||||
|
|||||||
Reference in New Issue
Block a user