rich text field and pdf create for appeal
This commit is contained in:
+41
-10
@@ -742,8 +742,7 @@ export const getWatchedCases = (loggedInUserId) => {
|
||||
export const getWatchedCasesProxy = (loggedInUserId) => {
|
||||
return axios
|
||||
.get(
|
||||
BASE_URL +
|
||||
"/api/endpoint/getwatchedcasesproxy_api?loggedInUserId=" +
|
||||
"/api/endpoint/getwatchedcasesproxy_api?loggedInUserId=" +
|
||||
loggedInUserId
|
||||
)
|
||||
.then((res) => res.data)
|
||||
@@ -1373,7 +1372,7 @@ export const generateRepPDF = async (formValues, containerID, casefolderID) => {
|
||||
method: "post",
|
||||
url: queryUrl,
|
||||
data: formValues,
|
||||
headers: { "content-type": "multipart/form-data" },
|
||||
//headers: { "content-type": "multipart/form-data" },
|
||||
};
|
||||
|
||||
//console.log(config);
|
||||
@@ -1384,6 +1383,38 @@ export const generateRepPDF = async (formValues, containerID, casefolderID) => {
|
||||
console.log("this serror", error);
|
||||
}
|
||||
};
|
||||
|
||||
export const generateAppealPDF = async (
|
||||
formValues,
|
||||
containerID,
|
||||
casefolderID
|
||||
) => {
|
||||
//let files = filesObj;
|
||||
|
||||
//console.log("generateAppealPDF function: " + formValues);
|
||||
// var formData = new FormData();
|
||||
// formValues.append("appealData", JSON.stringify(formValues));
|
||||
// formValues.append("containerID", containerID);
|
||||
// formValues.append("casefolderID", casefolderID);
|
||||
|
||||
var queryUrl = "/api/file/generateappealpdf";
|
||||
|
||||
const config = {
|
||||
method: "post",
|
||||
url: queryUrl,
|
||||
data: formValues,
|
||||
//headers: { "content-type": "multipart/form-data" },
|
||||
};
|
||||
|
||||
//console.log(config);
|
||||
try {
|
||||
const res = await axios(config);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
}
|
||||
};
|
||||
|
||||
export const getFilesFromBlob = (containerName, casefolderID) => {
|
||||
console.log(
|
||||
" get files from blob",
|
||||
@@ -1542,13 +1573,13 @@ export const sendEmail = async (
|
||||
"personalisation": personalisation,
|
||||
};
|
||||
|
||||
console.log(
|
||||
"hwewwew: ",
|
||||
templateId,
|
||||
emailAddress,
|
||||
personalisation,
|
||||
reference
|
||||
);
|
||||
// console.log(
|
||||
// "hwewwew: ",
|
||||
// templateId,
|
||||
// emailAddress,
|
||||
// personalisation,
|
||||
// reference
|
||||
// );
|
||||
var queryUrl = "/api/email/notify";
|
||||
|
||||
var config = {
|
||||
|
||||
Reference in New Issue
Block a user