Merged in release/3.8.1 (pull request #8684)

release/3.8.1
This commit is contained in:
Paula Quispe
2023-01-09 16:12:37 +00:00
6 changed files with 24 additions and 11 deletions

View File

@@ -313,7 +313,7 @@ export let cases = {
return Api.update({ return Api.update({
service: "ASSIGN_CASE", service: "ASSIGN_CASE",
data: { data: {
reason: data.reasonReassign, reason: data.reasonAssign,
sendMail: data.notifyUser, sendMail: data.notifyUser,
index: data.DEL_INDEX index: data.DEL_INDEX
}, },

View File

@@ -41,6 +41,7 @@
@onRemoveFilter="onRemoveFilter" @onRemoveFilter="onRemoveFilter"
@onUpdatePage="onUpdatePage" @onUpdatePage="onUpdatePage"
@onUpdateDataCase="onUpdateDataCase" @onUpdateDataCase="onUpdateDataCase"
@onOpenCaseDetail="onOpenCaseDetail"
@onLastPage="onLastPage" @onLastPage="onLastPage"
@onUpdateFilters="onUpdateFilters" @onUpdateFilters="onUpdateFilters"
@cleanDefaultOption="cleanDefaultOption" @cleanDefaultOption="cleanDefaultOption"
@@ -95,6 +96,7 @@ export default {
page: null, page: null,
menu: [], menu: [],
dataCase: {}, dataCase: {},
selectedItem: {},
hideToggle: true, hideToggle: true,
collapsed: false, collapsed: false,
selectedTheme: "", selectedTheme: "",
@@ -193,7 +195,16 @@ export default {
that.OnClickSidebarItem(that.getItemMenuByValue("page","inbox")); that.OnClickSidebarItem(that.getItemMenuByValue("page","inbox"));
} }
if ( e.data === "redirect=MyCases" || e.message === "redirect=MyCases"){ if ( e.data === "redirect=MyCases" || e.message === "redirect=MyCases"){
that.OnClickSidebarItem(that.getItemMenuByValue("page","MyCases")); that.onUpdateDataCase({
APP_UID: that.selectedItem.APP_UID,
DEL_INDEX: that.selectedItem.DEL_INDEX,
PRO_UID: that.selectedItem.PRO_UID,
TAS_UID: that.selectedItem.TAS_UID,
APP_NUMBER: that.selectedItem.CASE_NUMBER,
FLAG: "SUPERVISING",
ACTION:"to_revise"
});
that.onUpdatePage("case-detail");
} }
if ( e.data === "update=debugger" || e.message === "update=debugger"){ if ( e.data === "update=debugger" || e.message === "update=debugger"){
if(that.$refs["component"].updateView){ if(that.$refs["component"].updateView){
@@ -564,6 +575,9 @@ export default {
onUpdateDataCase(data) { onUpdateDataCase(data) {
this.dataCase = data; this.dataCase = data;
}, },
onOpenCaseDetail(item){
this.selectedItem = item;
},
onLastPage() { onLastPage() {
this.page = this.lastPage; this.page = this.lastPage;
this.lastPage = "MyCases"; this.lastPage = "MyCases";

View File

@@ -348,6 +348,7 @@ export default {
*/ */
openCaseDetail(item) { openCaseDetail(item) {
let that = this; let that = this;
that.$emit("onOpenCaseDetail", item);
api.cases.open(_.extend({ ACTION: "todo" }, item)).then(() => { api.cases.open(_.extend({ ACTION: "todo" }, item)).then(() => {
api.cases api.cases
.cases_open(_.extend({ ACTION: "todo" }, item)) .cases_open(_.extend({ ACTION: "todo" }, item))

View File

@@ -107,6 +107,9 @@ export default {
*/ */
show() { show() {
this.users = []; this.users = [];
this.reasonReassign = null;
this.userSelected = null;
this.notifyUser = false;
this.getUsers(); this.getUsers();
this.$refs["modal-assign-case"].show(); this.$refs["modal-assign-case"].show();
}, },

View File

@@ -108,6 +108,9 @@ export default {
*/ */
show() { show() {
this.users = []; this.users = [];
this.reasonReassign = null;
this.userSelected = null;
this.notifyUser = false;
this.getUsersReassign(); this.getUsersReassign();
this.$refs["modal-reassign-case"].show(); this.$refs["modal-reassign-case"].show();
if (this.data.FLAG){ if (this.data.FLAG){

View File

@@ -30,15 +30,7 @@ if (isset($_GET['ux'])) {
if (isset($_GET['ux'])) { if (isset($_GET['ux'])) {
echo 'if (typeof window.parent.ux_env != \'undefined\') {'; echo 'if (typeof window.parent.ux_env != \'undefined\') {';
} }
/*----------------------------------********---------------------------------*/ echo ' parent.parent.postMessage("redirect=todo","*");';
if (true) {
echo ' parent.parent.postMessage("redirect=todo","*");';
} else {
/*----------------------------------********---------------------------------*/
echo " window.parent.location.href = '$url';";
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
if (isset($_GET['ux'])) { if (isset($_GET['ux'])) {
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (PMLicensedFeatures::getSingleton()->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09') && $statusPMGmail) { if (PMLicensedFeatures::getSingleton()->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09') && $statusPMGmail) {