diff --git a/src/components/ADempiere/DataTable/index.vue b/src/components/ADempiere/DataTable/index.vue index 54ed99d5..0ea3d824 100644 --- a/src/components/ADempiere/DataTable/index.vue +++ b/src/components/ADempiere/DataTable/index.vue @@ -381,7 +381,7 @@ export default { defaultMaxPagination: 100, option: supportedTypes, menuTable: '1', - activeName: '', + activeName: this.$route.query.action === 'advancedQuery' ? '1' : '', isOptional: false, isFixed: false, isLoadPanelFromServer: false, diff --git a/src/components/ADempiere/Field/index.vue b/src/components/ADempiere/Field/index.vue index d0278f3a..a7fb0d76 100644 --- a/src/components/ADempiere/Field/index.vue +++ b/src/components/ADempiere/Field/index.vue @@ -16,29 +16,22 @@ > - - - - - - {{ zoomItem.name }} + + + {{ $t('table.ProcessActivity.zoomIn') }} + + {{ zoomItem.name }} + diff --git a/src/components/ADempiere/Panel/index.vue b/src/components/ADempiere/Panel/index.vue index 595226c6..9540380b 100644 --- a/src/components/ADempiere/Panel/index.vue +++ b/src/components/ADempiere/Panel/index.vue @@ -424,13 +424,13 @@ export default { if (route.query.hasOwnProperty(fieldItem.columnName) && fieldItem.isAdvancedQuery) { fieldItem.isShowedFromUser = true - if (route.query.action === 'advancedQuery' === fieldItem.isAdvancedQuery) { - fieldItem.value = parsedValueComponent({ + if (route.query.action === 'advancedQuery' && fieldItem.isAdvancedQuery) { + this.dataRecords[fieldItem.columnName] = parsedValueComponent({ fieldType: fieldItem.componentPath, value: route.query[fieldItem.columnName] }) if (fieldItem.isRange && route.query[fieldItem.columnName + '_To']) { - fieldItem.valueTo = parsedValueComponent({ + this.dataRecords[fieldItem.columnName] = parsedValueComponent({ fieldType: fieldItem.componentPath, value: route.query[fieldItem.columnName + '_To'] }) @@ -439,6 +439,16 @@ export default { } }) parameters.isWindow = false + this.$store.dispatch('notifyPanelChange', { + parentUuid: this.parentUuid, + containerUuid: this.containerUuid, + isAdvancedQuery: route.query.action === 'advancedQuery', + newValues: this.dataRecords, + isSendToServer: false, + isSendCallout: false, + fieldList: this.fieldList, + panelType: this.panelType + }) } else if (this.panelType === 'process' || this.panelType === 'browser') { if (!this.isEmptyValue(route.query)) { this.$store.dispatch('notifyPanelChange', { diff --git a/src/store/modules/ADempiere/panel.js b/src/store/modules/ADempiere/panel.js index 6fdf1537..0b5aa7dc 100644 --- a/src/store/modules/ADempiere/panel.js +++ b/src/store/modules/ADempiere/panel.js @@ -365,6 +365,8 @@ const panel = { dispatch('notifyFieldChange', { isSendToServer: isSendToServer, isSendCallout: isSendCallout, + isAdvancedQuery: isAdvancedQuery, + panelType: panelType, parentUuid: parentUuid, containerUuid: containerUuid, columnName: actionField.columnName, @@ -636,9 +638,9 @@ const panel = { type: 'info' }) } - } else if (isSendToQuery) { + } else { if (panelType === 'table' || isAdvancedQuery) { - if (fieldIsDisplayed(field) && field.isShowedFromUser) { + if (field.isShowedFromUser) { // change action to advanced query on field value is changed in this panel if (router.currentRoute.query.action !== 'advancedQuery') { router.push({