rep defect 42, questionnaire defect 67, enf defect 16

This commit is contained in:
2025-02-03 17:04:05 +00:00
parent f2d02dc7d3
commit bedaa79281
6 changed files with 35 additions and 15 deletions
+9 -8
View File
@@ -1137,14 +1137,15 @@ let MakeRepresentation = (props) => {
var dataObj = values;
uploadRepFiles(
dataObj,
[{}],
values.containerID,
props.caseReference + "/" + dataObj.repfile_name
).then((data) => {
return data;
});
(values = updateLinks(values)),
uploadRepFiles(
dataObj,
[{}],
values.containerID,
props.caseReference + "/" + dataObj.repfile_name
).then((data) => {
return data;
});
};
const repForm = props.props.form;
@@ -12,6 +12,7 @@ import {
bytesToSize,
getThumbnailIconByExtension,
formatDates,
updateLinks,
} from "../../utils";
import {
@@ -48,7 +49,9 @@ const RepCompleteSubmit = (props) => {
</li>
));
const repFormData = formObj.representationForm.values;
let repFormData = formObj.representationForm.values;
repFormData = updateLinks(repFormData);
//const repDate = new Date();
@@ -38,7 +38,11 @@ import {
subYears,
} from "date-fns";
import { bytesToSize, getThumbnailIconByExtension } from "../../utils";
import {
bytesToSize,
getThumbnailIconByExtension,
updateLinks,
} from "../../utils";
import { useRouter } from "next/router";
@@ -783,6 +787,7 @@ export const RenderRichMultiline = ({
);
const changeEdit = (valStr) => {
valStr = updateLinks(valStr);
setEditValue(valStr);
input.onChange(valStr);
};
@@ -1,6 +1,6 @@
import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import { formatDates } from "../../../utils";
import { formatDates, updateLinks } from "../../../utils";
let RepLPAQuestionnaireCheck_enforcement = (props) => {
let { t } = useTranslation();
@@ -14,7 +14,9 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
questionnaireCount,
} = props;
const repFormData = formObj.representationForm.values;
let repFormData = formObj.representationForm.values;
repFormData = updateLinks(repFormData);
return (
<>
@@ -1,6 +1,6 @@
import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import { formatDates } from "../../../utils";
import { formatDates, updateLinks } from "../../../utils";
let RepLPAQuestionnaireCheck_s78 = (props) => {
let { t } = useTranslation();
@@ -13,7 +13,10 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
setRepresentationSubmit,
questionnaireCount,
} = props;
const repFormData = formObj.representationForm.values;
let repFormData = formObj.representationForm.values;
repFormData = updateLinks(formObj);
return (
<>
+7 -1
View File
@@ -14,7 +14,11 @@ import {
import BuildCheckRow from "./buildcheckrow";
import { generateAppealPDF, sendCaseCompleteMessage } from "../../actions";
import { bytesToSize, getThumbnailIconByExtension } from "../utils";
import {
bytesToSize,
getThumbnailIconByExtension,
updateLinks,
} from "../utils";
let BuildCheckSection = (props) => {
useEffect(() => {
@@ -107,6 +111,8 @@ let BuildCheckSection = (props) => {
let pdfObj = props.props.form.appealForm.values;
pdfObj = updateLinks(pdfObj);
Object.assign(pdfObj, {
"filesList": buildAppealFilesArray,
"containerID": props.props.accountDetails.containerID,