when click change linik values persisted
This commit is contained in:
@@ -99,10 +99,10 @@ let BuildSection = (props) => {
|
||||
|
||||
//console.log(fileListObj);
|
||||
|
||||
console.log(
|
||||
"\n////////////////////////\n upload files:",
|
||||
props.props.accountDetails.containerID
|
||||
);
|
||||
// console.log(
|
||||
// "\n////////////////////////\n upload files:",
|
||||
// props.props.accountDetails.containerID
|
||||
// );
|
||||
|
||||
var dataObj = values;
|
||||
|
||||
@@ -130,7 +130,7 @@ let BuildSection = (props) => {
|
||||
let incidentId = props.appealType.caseReference.incidentid;
|
||||
let updateBody = values || {};
|
||||
let buildAppealFilesArray = [];
|
||||
console.log("attached docs: - ", buildAppealFilesArray);
|
||||
//console.log("attached docs: - ", buildAppealFilesArray);
|
||||
|
||||
let filesUploadObj = Object.keys(values)
|
||||
.filter(function (k) {
|
||||
@@ -141,7 +141,7 @@ let BuildSection = (props) => {
|
||||
return newData;
|
||||
}, {});
|
||||
|
||||
console.log(filesUploadObj);
|
||||
//console.log(filesUploadObj);
|
||||
|
||||
for (let key in filesUploadObj) {
|
||||
for (let j in filesUploadObj[key]) {
|
||||
@@ -167,14 +167,14 @@ let BuildSection = (props) => {
|
||||
setSavingStatus(useSaveStatus);
|
||||
|
||||
uploadAppealFiles(values);
|
||||
console.log(
|
||||
"\n////////////////////////\n appeal pdf payload",
|
||||
values,
|
||||
props.props.accountDetails.containerID,
|
||||
props.appealType.caseReference.ticketnumber,
|
||||
props.appealType,
|
||||
"\n////////////////////////\n"
|
||||
);
|
||||
// console.log(
|
||||
// "\n////////////////////////\n appeal pdf payload",
|
||||
// values,
|
||||
// props.props.accountDetails.containerID,
|
||||
// props.appealType.caseReference.ticketnumber,
|
||||
// props.appealType,
|
||||
// "\n////////////////////////\n"
|
||||
// );
|
||||
|
||||
// let pdfObj = values;
|
||||
|
||||
@@ -251,22 +251,22 @@ let BuildSection = (props) => {
|
||||
"linkExpiry": 10 * 60,
|
||||
};
|
||||
|
||||
console.log(
|
||||
"/////////////////////////////////",
|
||||
"returnLink:",
|
||||
props.props.url +
|
||||
(router.locale != "en" ? "/cy/fymhorth/" : "/myportal/") +
|
||||
appTypeCollection.UrlName +
|
||||
"?lpa=" +
|
||||
props.appealType.appealLPA +
|
||||
"&apt=" +
|
||||
appTypeCollection.appealTypeID +
|
||||
"&casereference=" +
|
||||
props.appealType.caseReference.ticketnumber +
|
||||
"&inid=" +
|
||||
props.appealType.caseReference.incidentid,
|
||||
"/////////////////////////////////"
|
||||
);
|
||||
// console.log(
|
||||
// "/////////////////////////////////",
|
||||
// "returnLink:",
|
||||
// props.props.url +
|
||||
// (router.locale != "en" ? "/cy/fymhorth/" : "/myportal/") +
|
||||
// appTypeCollection.UrlName +
|
||||
// "?lpa=" +
|
||||
// props.appealType.appealLPA +
|
||||
// "&apt=" +
|
||||
// appTypeCollection.appealTypeID +
|
||||
// "&casereference=" +
|
||||
// props.appealType.caseReference.ticketnumber +
|
||||
// "&inid=" +
|
||||
// props.appealType.caseReference.incidentid,
|
||||
// "/////////////////////////////////"
|
||||
// );
|
||||
|
||||
sendSavedEmail == true &&
|
||||
sendEmail(
|
||||
@@ -297,7 +297,7 @@ let BuildSection = (props) => {
|
||||
return newData;
|
||||
}, {});
|
||||
|
||||
console.log(filesUploadObj);
|
||||
//console.log(filesUploadObj);
|
||||
|
||||
for (let key in filesUploadObj) {
|
||||
for (let j in filesUploadObj[key]) {
|
||||
@@ -308,13 +308,13 @@ let BuildSection = (props) => {
|
||||
}
|
||||
}
|
||||
|
||||
console.log(buildAppealFilesArray);
|
||||
//console.log(buildAppealFilesArray);
|
||||
setFilesForAppeal(buildAppealFilesArray);
|
||||
|
||||
// Object.assign(values, { "filesList": buildAppealFilesArray });
|
||||
|
||||
delete valuesObj["_pinswg_appellant_value"];
|
||||
console.log("has errors:", props.invalid);
|
||||
//console.log("has errors:", props.invalid);
|
||||
props.invalid == false && updateCaseProgress(valuesObj, false, false);
|
||||
|
||||
setCurrentSection(currentSection + 1);
|
||||
@@ -467,16 +467,16 @@ let BuildSection = (props) => {
|
||||
props.props.form[props.form]
|
||||
.values || {};
|
||||
|
||||
console.log(
|
||||
"valuesobj:",
|
||||
valuesObj
|
||||
);
|
||||
// console.log(
|
||||
// "valuesobj:",
|
||||
// valuesObj
|
||||
// );
|
||||
|
||||
delete valuesObj[
|
||||
"_pinswg_appellant_value"
|
||||
];
|
||||
|
||||
console.log("on save:", valuesObj);
|
||||
// console.log("on save:", valuesObj);
|
||||
updateCaseProgress(
|
||||
valuesObj,
|
||||
true,
|
||||
@@ -487,6 +487,13 @@ let BuildSection = (props) => {
|
||||
{t("common:save-exit-button")}
|
||||
</button>
|
||||
)}
|
||||
{/* <span
|
||||
onClick={() =>
|
||||
setCurrentSection(sectionCount + 1)
|
||||
}
|
||||
>
|
||||
goto check
|
||||
</span> */}
|
||||
</>
|
||||
) : (
|
||||
""
|
||||
@@ -622,15 +629,22 @@ let BuildSection = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
initialValues: state.appealType.caseReference.caseDetails,
|
||||
//form: state.form,
|
||||
};
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return ownProps.props.hasOwnProperty("initialValues")
|
||||
? {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
initialValues: state.appealType.caseReference.caseDetails,
|
||||
}
|
||||
: {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
//form: state.form,
|
||||
};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
|
||||
Reference in New Issue
Block a user