mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 13:39:48 +08:00
feat: Add support to package gRPC-Dictionary-Client v1.4.3. (#516)
This commit is contained in:
parent
cd88f47cda
commit
a8b4b5b630
@ -47,7 +47,7 @@
|
|||||||
"@adempiere/grpc-access-client": "^1.2.1",
|
"@adempiere/grpc-access-client": "^1.2.1",
|
||||||
"@adempiere/grpc-core-client": "^1.1.4",
|
"@adempiere/grpc-core-client": "^1.1.4",
|
||||||
"@adempiere/grpc-data-client": "^2.4.4",
|
"@adempiere/grpc-data-client": "^2.4.4",
|
||||||
"@adempiere/grpc-dictionary-client": "^1.4.2",
|
"@adempiere/grpc-dictionary-client": "^1.4.3",
|
||||||
"@adempiere/grpc-enrollment-client": "^1.1.0",
|
"@adempiere/grpc-enrollment-client": "^1.1.0",
|
||||||
"@adempiere/grpc-pos-client": "^1.3.2",
|
"@adempiere/grpc-pos-client": "^1.3.2",
|
||||||
"axios": "0.19.2",
|
"axios": "0.19.2",
|
||||||
|
@ -1,36 +1,34 @@
|
|||||||
// Get Instance for connection
|
// Get Instance for connection
|
||||||
import { DictionaryInstance as Instance } from '@/api/ADempiere/instances.js'
|
import { DictionaryInstance as Instance } from '@/api/ADempiere/instances.js'
|
||||||
|
|
||||||
export function getWindow(uuid, isWithTabs = true) {
|
export function getWindow({ uuid, id, isWithTabs = true }) {
|
||||||
return Instance.call(this).requestWindow({
|
return Instance.call(this).requestWindow({
|
||||||
uuid,
|
uuid,
|
||||||
isWithTabs,
|
id,
|
||||||
isConvertedMetadata: true
|
isWithTabs
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getProcess(uuid, isConvertedMetadata = true) {
|
export function getProcess({ uuid, id }) {
|
||||||
return Instance.call(this).requestProcess({
|
return Instance.call(this).requestProcess({
|
||||||
uuid: uuid,
|
uuid,
|
||||||
isConvertedMetadata,
|
id,
|
||||||
isConvertedFields: true
|
isWithFields: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBrowser(uuid, isConvertedMetadata = true) {
|
export function getBrowser({ uuid, id }) {
|
||||||
return Instance.call(this).requestBrowser({
|
return Instance.call(this).requestBrowser({
|
||||||
uuid,
|
uuid,
|
||||||
isConvertedMetadata,
|
id
|
||||||
isConvertedFields: true
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getTab(uuid, isWithFields = true, isConvertedMetadata = true) {
|
export function getTab({ uuid, id, isWithFields = true }) {
|
||||||
return Instance.call(this).requestTab({
|
return Instance.call(this).requestTab({
|
||||||
uuid,
|
uuid,
|
||||||
isWithFields,
|
id,
|
||||||
isConvertedMetadata,
|
isWithFields
|
||||||
isConvertedFields: true
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,10 +27,14 @@ const browser = {
|
|||||||
actions: {
|
actions: {
|
||||||
getBrowserFromServer({ commit, dispatch }, {
|
getBrowserFromServer({ commit, dispatch }, {
|
||||||
containerUuid,
|
containerUuid,
|
||||||
|
browserId,
|
||||||
routeToDelete
|
routeToDelete
|
||||||
}) {
|
}) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
getBrowserMetadata(containerUuid)
|
getBrowserMetadata({
|
||||||
|
uuid: containerUuid,
|
||||||
|
id: browserId
|
||||||
|
})
|
||||||
.then(browserResponse => {
|
.then(browserResponse => {
|
||||||
const panelType = 'browser'
|
const panelType = 'browser'
|
||||||
const additionalAttributes = {
|
const additionalAttributes = {
|
||||||
|
@ -18,16 +18,21 @@ const process = {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
/**
|
/**
|
||||||
* Get process metadata from server
|
* Get process/report metadata from server
|
||||||
* @param {string} containerUuid
|
* @param {string} containerUuid
|
||||||
|
* @param {number} processId
|
||||||
* @param {object} routeToDelete, route to close in tagView when fail
|
* @param {object} routeToDelete, route to close in tagView when fail
|
||||||
*/
|
*/
|
||||||
getProcessFromServer({ commit, dispatch }, {
|
getProcessFromServer({ commit, dispatch }, {
|
||||||
containerUuid,
|
containerUuid,
|
||||||
|
processId,
|
||||||
routeToDelete
|
routeToDelete
|
||||||
}) {
|
}) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
getProcessMetadata(containerUuid)
|
getProcessMetadata({
|
||||||
|
uuid: containerUuid,
|
||||||
|
id: processId
|
||||||
|
})
|
||||||
.then(async responseProcess => {
|
.then(async responseProcess => {
|
||||||
let printFormatsAvailable = []
|
let printFormatsAvailable = []
|
||||||
if (responseProcess.isReport) {
|
if (responseProcess.isReport) {
|
||||||
|
@ -46,9 +46,13 @@ const window = {
|
|||||||
actions: {
|
actions: {
|
||||||
getWindowFromServer({ commit, state, dispatch }, {
|
getWindowFromServer({ commit, state, dispatch }, {
|
||||||
windowUuid,
|
windowUuid,
|
||||||
|
windowId,
|
||||||
routeToDelete
|
routeToDelete
|
||||||
}) {
|
}) {
|
||||||
return getWindowMetadata(windowUuid)
|
return getWindowMetadata({
|
||||||
|
uuid: windowUuid,
|
||||||
|
id: windowId
|
||||||
|
})
|
||||||
.then(responseWindow => {
|
.then(responseWindow => {
|
||||||
const firstTabTableName = responseWindow.tabsList[0].tableName
|
const firstTabTableName = responseWindow.tabsList[0].tableName
|
||||||
const firstTabUuid = responseWindow.tabsList[0].uuid
|
const firstTabUuid = responseWindow.tabsList[0].uuid
|
||||||
@ -244,12 +248,16 @@ const window = {
|
|||||||
getTabAndFieldFromServer({ dispatch, getters }, {
|
getTabAndFieldFromServer({ dispatch, getters }, {
|
||||||
parentUuid,
|
parentUuid,
|
||||||
containerUuid,
|
containerUuid,
|
||||||
|
tabId,
|
||||||
panelType = 'window',
|
panelType = 'window',
|
||||||
panelMetadata,
|
panelMetadata,
|
||||||
isAdvancedQuery = false
|
isAdvancedQuery = false
|
||||||
}) {
|
}) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
getTabMetadata(containerUuid)
|
getTabMetadata({
|
||||||
|
uuid: containerUuid,
|
||||||
|
id: tabId
|
||||||
|
})
|
||||||
.then(tabResponse => {
|
.then(tabResponse => {
|
||||||
const additionalAttributes = {
|
const additionalAttributes = {
|
||||||
parentUuid,
|
parentUuid,
|
||||||
|
@ -323,7 +323,7 @@ export function generateProcess({ processToGenerate, containerUuidAssociated = u
|
|||||||
isDirectPrint: processToGenerate.isDirectPrint
|
isDirectPrint: processToGenerate.isDirectPrint
|
||||||
}
|
}
|
||||||
|
|
||||||
processToGenerate.reportExportTypeList.forEach(actionValue => {
|
processToGenerate.reportExportTypesList.forEach(actionValue => {
|
||||||
// Push values
|
// Push values
|
||||||
summaryAction.childs.push({
|
summaryAction.childs.push({
|
||||||
name: `${language.t('components.ExportTo')} (${actionValue.name})`,
|
name: `${language.t('components.ExportTo')} (${actionValue.name})`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user