[update] 企标计划立项变更流程

This commit is contained in:
lideqin
2023-10-27 18:25:46 +08:00
parent 4b8ec3112c
commit 39c01388b0
3 changed files with 13 additions and 19 deletions
@@ -330,6 +330,8 @@ const changePersonalInfo = [
id: 1, id: 1,
nodeName: '主起草人发起', nodeName: '主起草人发起',
nodeRoleName: '发起人', nodeRoleName: '发起人',
userList: Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')',
fieldName: 'createUser',
canChoose: false canChoose: false
}, },
{ {
@@ -443,12 +445,6 @@ export default {
// } // }
// } // }
}, },
// watch: {
// // 也只有节点1才会改变,应该在初始化数据的时候不触发才对??
// 'formInline.applicationCategory' (value) {
//
// }
// },
mounted () { mounted () {
console.log(this.$route.query.taskId) console.log(this.$route.query.taskId)
if (this.$route.query.taskId) { if (this.$route.query.taskId) {
@@ -559,14 +555,6 @@ export default {
// 初始化流程审批信息,todo:需要判断是不是草稿进来的,草稿进来的才回显审批信息 // 初始化流程审批信息,todo:需要判断是不是草稿进来的,草稿进来的才回显审批信息
// this.approvalInfoForm.setFieldsValue(pick(this.model[0], 'commitText', 'commitFile')) // this.approvalInfoForm.setFieldsValue(pick(this.model[0], 'commitText', 'commitFile'))
}) })
// 初始化业务基本信息的申请类型和项目类别
const baseInfoForm = {}
baseInfoForm.applicationCategory = this.model.dataList[0].applicationCategory
this.formInline = Object.assign({}, baseInfoForm)
this.$nextTick(() => {
baseInfoForm.projectType = this.model.dataList[0].projectType
this.formInline = Object.assign({}, baseInfoForm)
})
// 初始化流程节点,此流程因为节点名称有重复,需要在此处根据applicationCatsegory做一些判断 // 初始化流程节点,此流程因为节点名称有重复,需要在此处根据applicationCatsegory做一些判断
const taskName = this.$route.query.taskName const taskName = this.$route.query.taskName
if (taskName) { if (taskName) {
@@ -596,7 +584,13 @@ export default {
} else { } else {
this.disabled = true this.disabled = true
} }
// 初始化人员信息 todo: 发起人还没处理 // 初始化业务基本信息的申请类型和项目类别,分开赋值是因为项目类别会没有下拉数据无法回显
const baseInfoForm = {}
baseInfoForm.applicationCategory = this.model.dataList[0].applicationCategory
this.formInline = Object.assign({}, baseInfoForm)
baseInfoForm.projectType = this.model.dataList[0].projectType
this.formInline = Object.assign({}, baseInfoForm)
// 初始化人员信息
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value && this.currentNode === 1) { if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value && this.currentNode === 1) {
// 立项的节点1 // 立项的节点1
this.personnelInfoData = approvalPersonalInfo.map(item => { this.personnelInfoData = approvalPersonalInfo.map(item => {
@@ -662,7 +656,7 @@ export default {
this.formInline.projectType === ProjectType.WORK_TERMINATE.value)) { this.formInline.projectType === ProjectType.WORK_TERMINATE.value)) {
// 是完成时间变更或工作终止的变更 // 是完成时间变更或工作终止的变更
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.changeBaseInfo.dataSource = this.model.dataList this.$refs.changeBaseInfo.dataSource = JSON.parse(JSON.stringify(this.model.dataList))
}) })
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
(this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value || (this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value ||
@@ -17,7 +17,7 @@
:can-drag="true" :can-drag="true"
:scroll="{x: '100%'}" :scroll="{x: '100%'}"
ref="table" ref="table"
rowKey="enterpriseStandardPlanId" rowKey="espId"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="false"
@@ -211,7 +211,7 @@ export default {
}, },
// 批量删除 // 批量删除
batchDel () { batchDel () {
this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item.enterpriseStandardPlanId)) this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item.espId))
} }
} }
} }
@@ -109,7 +109,7 @@ export default {
title: this.$t('workCenter.processCenter.initiator'), title: this.$t('workCenter.processCenter.initiator'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'createUserName', dataIndex: 'createUserId_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 接收任务时间 { // 接收任务时间