PMCORE-3017-E
This commit is contained in:
@@ -30,11 +30,7 @@ const services = {
|
|||||||
CLAIM_CASE: "/case/{app_uid}/claim",
|
CLAIM_CASE: "/case/{app_uid}/claim",
|
||||||
GET_FILE_VERSIONS: "/cases/{app_uid}/input-document/{app_doc_uid}/versions",
|
GET_FILE_VERSIONS: "/cases/{app_uid}/input-document/{app_doc_uid}/versions",
|
||||||
REGISTER: "https:trial32.processmaker.com/syscolosa/en/neoclassic_pro/9893000714bdb2d52ecc317052629917/Trial_RequestPostMobile.php",
|
REGISTER: "https:trial32.processmaker.com/syscolosa/en/neoclassic_pro/9893000714bdb2d52ecc317052629917/Trial_RequestPostMobile.php",
|
||||||
<<<<<<< HEAD
|
|
||||||
ADD_NOTE: "/case/{app_uid}/note",
|
|
||||||
=======
|
|
||||||
POST_NOTE: "/case/{app_uid}/note",
|
POST_NOTE: "/case/{app_uid}/note",
|
||||||
>>>>>>> 032cd35bb... PMCORE-3017
|
|
||||||
LAST_OPEN_INDEX: "/light/lastopenindex/case/{app_uid}",
|
LAST_OPEN_INDEX: "/light/lastopenindex/case/{app_uid}",
|
||||||
REGISTER_WITH_GOOGLE_FAKE_URL: "fakeurl",
|
REGISTER_WITH_GOOGLE_FAKE_URL: "fakeurl",
|
||||||
SIGN_IN_TO_PM_WITH_GOOGLE: "/authentication/gmail",
|
SIGN_IN_TO_PM_WITH_GOOGLE: "/authentication/gmail",
|
||||||
@@ -195,12 +191,8 @@ export default {
|
|||||||
"Authorization": `Bearer ` + credentials.accessToken
|
"Authorization": `Bearer ` + credentials.accessToken
|
||||||
}, headers)
|
}, headers)
|
||||||
});
|
});
|
||||||
<<<<<<< HEAD
|
|
||||||
},
|
|
||||||
=======
|
|
||||||
},
|
},
|
||||||
|
|
||||||
>>>>>>> 032cd35bb... PMCORE-3017
|
|
||||||
delete(options) {
|
delete(options) {
|
||||||
let service = options.service || "",
|
let service = options.service || "",
|
||||||
id = options.id || {},
|
id = options.id || {},
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ export let caseNotes = {
|
|||||||
post(data) {
|
post(data) {
|
||||||
var params = new FormData();
|
var params = new FormData();
|
||||||
params.append('appUid', data.APP_UID);
|
params.append('appUid', data.APP_UID);
|
||||||
params.append('noteText', data.COMMENT);
|
params.append('note_content', data.COMMENT);
|
||||||
params.append('swSendMail', data.SEND_MAIL ? 1 : 0);
|
params.append('send_mail', data.SEND_MAIL ? 1 : 0);
|
||||||
|
|
||||||
_.each(data.FILES, (f) => {
|
_.each(data.FILES, (f) => {
|
||||||
params.append("filesToUpload[]", f);
|
params.append("filesToUpload[]", f);
|
||||||
@@ -14,11 +14,7 @@ export let caseNotes = {
|
|||||||
|
|
||||||
return Api.postFiles({
|
return Api.postFiles({
|
||||||
service: "POST_NOTE",
|
service: "POST_NOTE",
|
||||||
data: {
|
data: params,
|
||||||
note_content: data.COMMENT,
|
|
||||||
send_mail: data.SEND_MAIL
|
|
||||||
},
|
|
||||||
params,
|
|
||||||
headers:{
|
headers:{
|
||||||
'Content-Type': 'multipart/form-data'
|
'Content-Type': 'multipart/form-data'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -131,23 +131,12 @@ export let cases = {
|
|||||||
`cases/cases_Open?APP_UID=${data.APP_UID}&DEL_INDEX=${data.DEL_INDEX}&action=${data.ACTION}`);
|
`cases/cases_Open?APP_UID=${data.APP_UID}&DEL_INDEX=${data.DEL_INDEX}&action=${data.ACTION}`);
|
||||||
},
|
},
|
||||||
cancel(data) {
|
cancel(data) {
|
||||||
<<<<<<< HEAD
|
|
||||||
var params = new URLSearchParams();
|
|
||||||
params.append('action', 'cancelCase');
|
|
||||||
params.append('NOTE_REASON', data.COMMENT);
|
|
||||||
params.append('NOTIFY_CANCEL', data.SEND);
|
|
||||||
|
|
||||||
return Api.put({
|
|
||||||
service: "REQUEST_CANCEL_CASE",
|
|
||||||
params: {},
|
|
||||||
=======
|
|
||||||
return Api.update({
|
return Api.update({
|
||||||
service: "CANCEL_CASE",
|
service: "CANCEL_CASE",
|
||||||
data: {
|
data: {
|
||||||
reason: data.COMMENT,
|
reason: data.COMMENT,
|
||||||
sendMail: data.SEND
|
sendMail: data.SEND
|
||||||
},
|
},
|
||||||
>>>>>>> 032cd35bb... PMCORE-3017
|
|
||||||
keys: {
|
keys: {
|
||||||
app_uid: data.APP_UID
|
app_uid: data.APP_UID
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,10 +224,7 @@ export default {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (
|
if (response.status === 200 ) {
|
||||||
response.data.success === "success" &&
|
|
||||||
response.data.message == ""
|
|
||||||
) {
|
|
||||||
that.attachDocuments = false;
|
that.attachDocuments = false;
|
||||||
that.dataAttachedDocuments.items = [];
|
that.dataAttachedDocuments.items = [];
|
||||||
that.getCasesNotes();
|
that.getCasesNotes();
|
||||||
@@ -416,7 +413,7 @@ export default {
|
|||||||
Api.caseNotes
|
Api.caseNotes
|
||||||
.get(this.dataCase)
|
.get(this.dataCase)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
that.formatResponseCaseNotes(response.data.notes);
|
that.formatResponseCaseNotes(response.data.data);
|
||||||
that.dataComments.noPerms = response.data.noPerms || 0;
|
that.dataComments.noPerms = response.data.noPerms || 0;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
@@ -430,12 +427,12 @@ export default {
|
|||||||
n.id = _.random(1000000);
|
n.id = _.random(1000000);
|
||||||
notesArray.push({
|
notesArray.push({
|
||||||
user: that.nameFormatCases(
|
user: that.nameFormatCases(
|
||||||
n.USR_FIRSTNAME,
|
n.usr_firstname,
|
||||||
n.USR_LASTNAME,
|
n.usr_lastname,
|
||||||
n.USR_USERNAME
|
n.usr_username
|
||||||
),
|
),
|
||||||
date: n.NOTE_DATE,
|
date: n.note_date,
|
||||||
comment: n.NOTE_CONTENT,
|
comment: n.note_content,
|
||||||
data: n
|
data: n
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default {
|
|||||||
SEND: this.$refs["send"].checked ? 1 : 0,
|
SEND: this.$refs["send"].checked ? 1 : 0,
|
||||||
}))
|
}))
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.data && response.data.status) {
|
if (response.status === 200) {
|
||||||
that.$refs["modal-cancel-case"].hide();
|
that.$refs["modal-cancel-case"].hide();
|
||||||
that.$parent.$parent.page = "todo";
|
that.$parent.$parent.page = "todo";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ import api from "./../../api/index";
|
|||||||
export default {
|
export default {
|
||||||
name: "ModalClaimCase",
|
name: "ModalClaimCase",
|
||||||
components: {},
|
components: {},
|
||||||
props: {},
|
props: {
|
||||||
|
dataCase: Object,
|
||||||
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -53,7 +55,7 @@ export default {
|
|||||||
claimCase() {
|
claimCase() {
|
||||||
let that = this;
|
let that = this;
|
||||||
api.cases.claim(this.data).then((response) => {
|
api.cases.claim(this.data).then((response) => {
|
||||||
if (response.statusText == "OK") {
|
if (response.status === 200) {
|
||||||
that.$refs["modal-claim-case"].hide();
|
that.$refs["modal-claim-case"].hide();
|
||||||
that.$parent.$emit("onUpdateDataCase", {
|
that.$parent.$emit("onUpdateDataCase", {
|
||||||
APP_UID: this.data.APP_UID,
|
APP_UID: this.data.APP_UID,
|
||||||
|
|||||||
Reference in New Issue
Block a user