update 会后管理流程分标委、工作组下拉
This commit is contained in:
@@ -365,6 +365,8 @@ const transferPostMeetingManage = (params) => getAction('/process/meetingManageF
|
||||
const savePostMeetingManage = (params) => postAction('/process/meetingManageFlow/flowSave', params)
|
||||
// 权限申请流程业务数据
|
||||
const getPostMeetingManageDataById = (params) => getAction('/meetingmanage/processMeetingManage/queryByProjectId', params)
|
||||
// 分标委、工作组下拉 (standardizationType ROOT:总标委,WYH:委员会,FBW:分标委,GROUP:工作组)
|
||||
const getStandardizationList = (params) => getAction('/laws/standardization/lawsStandardization/queryList', params)
|
||||
|
||||
// 流程中心统一转办
|
||||
const processTransfer = (params) => postAction('/workCenter/transfer', params)
|
||||
@@ -609,6 +611,7 @@ export {
|
||||
transferPostMeetingManage,
|
||||
savePostMeetingManage,
|
||||
getPostMeetingManageDataById,
|
||||
getStandardizationList,
|
||||
|
||||
processTransfer,
|
||||
|
||||
|
||||
@@ -131,8 +131,8 @@
|
||||
<script>
|
||||
import UploadFile from '@comp/UploadFile'
|
||||
import StandardSelection from '@comp/selection/StandardSelection'
|
||||
import { queryTreeList } from '@api/businessSupport'
|
||||
import { PostMeetingManage, StandardSource } from '@/enums/commonEnums'
|
||||
import { PostMeetingManage, StandardizedActivityType, StandardSource } from '@/enums/commonEnums'
|
||||
import { getStandardizationList } from '@api/workCenter'
|
||||
|
||||
export default {
|
||||
name: 'BaseInfoForm',
|
||||
@@ -211,33 +211,36 @@ export default {
|
||||
this.initWorkList()
|
||||
},
|
||||
methods: {
|
||||
// 分别委工作组下拉
|
||||
// 分标委下拉
|
||||
initWorkList () {
|
||||
this.subStandardizationCommitteeList = []
|
||||
this.workGroupList = []
|
||||
queryTreeList().then(res => {
|
||||
getStandardizationList({
|
||||
standardizationType: StandardizedActivityType.workingTeam.value
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
console.log(res)
|
||||
this.treeData = res.result.children || []
|
||||
this.subStandardizationCommitteeList.push(...this.treeData)
|
||||
// 下拉菜单请求回来回显数据
|
||||
if (this.model.standardizationFirstId && this.treeData.length) {
|
||||
this.workGroupList = (this.treeData.find(item => item.id === this.model.standardizationFirstId)).children
|
||||
}
|
||||
this.subStandardizationCommitteeList = res.result || []
|
||||
}
|
||||
})
|
||||
},
|
||||
// 联动二级
|
||||
// 分标委改变联动工作组
|
||||
changeSubStandardizationCommitteeList (id) {
|
||||
this.$set(this.formInline, 'standardizationSecondId', undefined)
|
||||
const findNode = this.treeData.find(item => item.id === id)
|
||||
this.workGroupList = findNode.children
|
||||
getStandardizationList({
|
||||
standardizationType: StandardizedActivityType.fourLevelBiddingCommittee.value,
|
||||
pid: id
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.workGroupList = res.result || []
|
||||
}
|
||||
})
|
||||
},
|
||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||
initData (data) {
|
||||
this.model = Object.assign({}, data)
|
||||
if (this.model.standardizationFirstId && this.treeData.length) {
|
||||
this.workGroupList = (this.treeData.find(item => item.id === this.model.standardizationFirstId)).children
|
||||
// 回显工作组下拉
|
||||
if (this.model.standardizationFirstId) {
|
||||
this.changeSubStandardizationCommitteeList(this.model.standardizationFirstId)
|
||||
}
|
||||
// 给表单赋值
|
||||
this.formInline = {
|
||||
|
||||
Reference in New Issue
Block a user