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 savePostMeetingManage = (params) => postAction('/process/meetingManageFlow/flowSave', params)
|
||||||
// 权限申请流程业务数据
|
// 权限申请流程业务数据
|
||||||
const getPostMeetingManageDataById = (params) => getAction('/meetingmanage/processMeetingManage/queryByProjectId', 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)
|
const processTransfer = (params) => postAction('/workCenter/transfer', params)
|
||||||
@@ -609,6 +611,7 @@ export {
|
|||||||
transferPostMeetingManage,
|
transferPostMeetingManage,
|
||||||
savePostMeetingManage,
|
savePostMeetingManage,
|
||||||
getPostMeetingManageDataById,
|
getPostMeetingManageDataById,
|
||||||
|
getStandardizationList,
|
||||||
|
|
||||||
processTransfer,
|
processTransfer,
|
||||||
|
|
||||||
|
|||||||
@@ -131,8 +131,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import UploadFile from '@comp/UploadFile'
|
import UploadFile from '@comp/UploadFile'
|
||||||
import StandardSelection from '@comp/selection/StandardSelection'
|
import StandardSelection from '@comp/selection/StandardSelection'
|
||||||
import { queryTreeList } from '@api/businessSupport'
|
import { PostMeetingManage, StandardizedActivityType, StandardSource } from '@/enums/commonEnums'
|
||||||
import { PostMeetingManage, StandardSource } from '@/enums/commonEnums'
|
import { getStandardizationList } from '@api/workCenter'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseInfoForm',
|
name: 'BaseInfoForm',
|
||||||
@@ -211,33 +211,36 @@ export default {
|
|||||||
this.initWorkList()
|
this.initWorkList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 分别委工作组下拉
|
// 分标委下拉
|
||||||
initWorkList () {
|
initWorkList () {
|
||||||
this.subStandardizationCommitteeList = []
|
this.subStandardizationCommitteeList = []
|
||||||
this.workGroupList = []
|
this.workGroupList = []
|
||||||
queryTreeList().then(res => {
|
getStandardizationList({
|
||||||
|
standardizationType: StandardizedActivityType.workingTeam.value
|
||||||
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
console.log(res)
|
this.subStandardizationCommitteeList = res.result || []
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 联动二级
|
// 分标委改变联动工作组
|
||||||
changeSubStandardizationCommitteeList (id) {
|
changeSubStandardizationCommitteeList (id) {
|
||||||
this.$set(this.formInline, 'standardizationSecondId', undefined)
|
this.$set(this.formInline, 'standardizationSecondId', undefined)
|
||||||
const findNode = this.treeData.find(item => item.id === id)
|
getStandardizationList({
|
||||||
this.workGroupList = findNode.children
|
standardizationType: StandardizedActivityType.fourLevelBiddingCommittee.value,
|
||||||
|
pid: id
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.workGroupList = res.result || []
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||||
initData (data) {
|
initData (data) {
|
||||||
this.model = Object.assign({}, 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 = {
|
this.formInline = {
|
||||||
|
|||||||
Reference in New Issue
Block a user