fix 80340
This commit is contained in:
@@ -163,14 +163,11 @@ import {
|
|||||||
agreeProcurementProcess,
|
agreeProcurementProcess,
|
||||||
rejectProcurementProcess,
|
rejectProcurementProcess,
|
||||||
transferProcurementProcess,
|
transferProcurementProcess,
|
||||||
carbonCopyProcurementProcess,
|
carbonCopyProcurementProcess
|
||||||
getProcessNodeList
|
|
||||||
} from '../../../api/workCenter'
|
} from '../../../api/workCenter'
|
||||||
import UserSelection from '../../../components/selection/UserSelection'
|
import UserSelection from '../../../components/selection/UserSelection'
|
||||||
import UserSelectModal from '../../../components/selection/UserSelectModal'
|
import UserSelectModal from '../../../components/selection/UserSelectModal'
|
||||||
import { downFile } from '../../../api/manage'
|
import { downFile } from '../../../api/manage'
|
||||||
import Vue from 'vue'
|
|
||||||
import { USER_INFO } from '../../../store/mutation-types'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardProcurementProcess',
|
name: 'StandardProcurementProcess',
|
||||||
@@ -287,40 +284,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询人员信息结构数据,callback用于获取完流程才可以初始化人员信息
|
|
||||||
getPersonInfoStructure (key, callback) {
|
|
||||||
const param = {}
|
|
||||||
param.processDefinitionKey = key
|
|
||||||
if (this.$route.query.processInstanceId) {
|
|
||||||
param.processInstanceId = this.$route.query.processInstanceId
|
|
||||||
}
|
|
||||||
getProcessNodeList(param).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
console.log(res.result)
|
|
||||||
// 处理人员信息数据,判断每个节点是否能选人
|
|
||||||
this.personnelInfoData = res.result.map(item => {
|
|
||||||
return {
|
|
||||||
...item,
|
|
||||||
chooseType: item.variableType === 'string' ? 'radio' : 'checkbox'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (!this.$route.query.processInstanceId) {
|
|
||||||
// 说明是在新发起一个节点,初始化发起人员信息
|
|
||||||
this.personnelInfoData[0].linkUserIds = Vue.ls.get(USER_INFO).id
|
|
||||||
this.personnelInfoData[0].linkUserIds_dictText = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
|
|
||||||
this.personnelInfoData[0].userList = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
|
|
||||||
// 发起节点,最后一个节点也需要返回当前登陆人
|
|
||||||
const lastIndex = this.personnelInfoData.length - 1
|
|
||||||
this.personnelInfoData[lastIndex].linkUserIds = Vue.ls.get(USER_INFO).id
|
|
||||||
this.personnelInfoData[lastIndex].linkUserIds_dictText = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
|
|
||||||
this.personnelInfoData[lastIndex].userList = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
|
|
||||||
}
|
|
||||||
if (callback) {
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
onSelectChange (selectedRowKeys) {
|
onSelectChange (selectedRowKeys) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user