新 申请流程

This commit is contained in:
a0049873 2022-08-23 13:59:43 +08:00
parent 273a7c98c8
commit ded027bb64
6 changed files with 51 additions and 9 deletions

View File

@ -0,0 +1,12 @@
/*
* @Author: hisense.liangjunhua
* @Date: 2022-08-23 10:30:11
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-23 10:31:30
* @Description: 告诉大家这是什么
*/
const returnLocationStr = () => {
return 'qingdao'
}
export default returnLocationStr

View File

@ -109,6 +109,7 @@
<script> <script>
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module' import processModule from '@/mixins/process-module'
import returnLocationStr from '@/utils/location'
import qs from 'qs' import qs from 'qs'
export default { export default {
mixins: [mixinViewModule, processModule], mixins: [mixinViewModule, processModule],
@ -122,7 +123,7 @@ export default {
}, },
dataForm: { dataForm: {
processDefinitionId: '', processDefinitionId: '',
processDefinitionKey: 'abilityprocess_v2' processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
} }
} }
}, },

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-27 11:27:22 * @Date: 2022-06-27 11:27:22
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-25 09:39:01 * @LastEditTime: 2022-08-23 10:37:29
* @Description: 能力申请 * @Description: 能力申请
--> -->
<template> <template>
@ -121,6 +121,7 @@
import bus from '@/views/bus.js' import bus from '@/views/bus.js'
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module' import processModule from '@/mixins/process-module'
import returnLocationStr from '@/utils/location'
export default { export default {
mixins: [mixinViewModule, processModule], mixins: [mixinViewModule, processModule],
data () { data () {
@ -135,7 +136,7 @@ export default {
dataForm: { dataForm: {
taskName: '', taskName: '',
taskId: '', taskId: '',
processDefinitionKey: 'abilityprocess_v2' processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
}, },
processInstanceId: '' processInstanceId: ''
} }
@ -144,7 +145,7 @@ export default {
methods: { methods: {
// //
taskHandle (row) { taskHandle (row) {
console.log('row======================>', row, this.forwardHandleUrl) console.log('row======================>', row, this.forwardHandleUrl, this.dataForm.processDefinitionKey)
if (!row.businessKey) { if (!row.businessKey) {
return this.$message.error(this.$t('task.businessKeyError')) return this.$message.error(this.$t('task.businessKeyError'))
} }

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23 * @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-19 09:56:27 * @LastEditTime: 2022-08-22 18:21:31
* @Description: 数据资源参数配置 * @Description: 数据资源参数配置
*/ */
//const newLocation = 'qingdao' //const newLocation = 'qingdao'

View File

@ -2,10 +2,11 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40 * @Date: 2022-04-01 19:19:40
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-13 14:54:04 * @LastEditTime: 2022-08-23 09:37:58
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
*/ */
import request from '@/utils/request' import request from '@/utils/request'
import returnLocationStr from '@/utils/location'
export function selectDicStoreAll(params) { export function selectDicStoreAll(params) {
return request({ return request({
@ -113,16 +114,30 @@ export function lastestPage(params) {
// //
export function submitApply(data) { export function submitApply(data) {
const newLocation = returnLocationStr()
let url = ''
if (newLocation == 'qingdao') {
url = '/ability/center/v3/apply'
} else {
url = '/ability/center/v2/apply'
}
return request({ return request({
url: '/ability/center/v2/apply', url: url,
method: 'post', method: 'post',
data, data,
}) })
} }
// //
export function applyAllApplication(data) { export function applyAllApplication(data) {
const newLocation = returnLocationStr()
let url = ''
if (newLocation == 'qingdao') {
url = '/ability/center/v3/applyAllApplication'
} else {
url = '/ability/center/v2/applyAllApplication'
}
return request({ return request({
url: '/ability/center/v2/applyAllApplication', url: url,
method: 'post', method: 'post',
data, data,
}) })

View File

@ -0,0 +1,13 @@
/*
* @Author: hisense.liangjunhua
* @Date: 2022-08-22 18:22:16
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-23 09:31:02
* @Description: 告诉大家这是什么
*/
const returnLocationStr = () => {
return 'qingdao'
}
export default returnLocationStr