[update] 修改企标立项流程

This commit is contained in:
lideqin
2023-11-24 18:08:11 +08:00
parent 407be20fdd
commit 1dea3b2eb6
5 changed files with 32 additions and 11 deletions
@@ -336,10 +336,12 @@ export default {
// 查询流程定义列表,通过查出的数据获取到流程定义id,如果已经发起过流程,用这个id和流程实例id去查人员信息数据 // 查询流程定义列表,通过查出的数据获取到流程定义id,如果已经发起过流程,用这个id和流程实例id去查人员信息数据
this.getPersonInfoStructure(ProcessKey.ES_INIT_CHANGE.value) this.getPersonInfoStructure(ProcessKey.ES_INIT_CHANGE.value)
// 根据流程节点初始化是否可以编辑 // 根据流程节点初始化是否可以编辑
if (this.currentNode === 1) { if (this.$route.query.processInstanceId) {
this.disabled = false if (this.currentNode === 1) {
} else { this.disabled = false
this.disabled = true } else {
this.disabled = true
}
} }
if (this.$route.query.taskId) { if (this.$route.query.taskId) {
// 有流程id说明是从流程中心来的,需要初始化数据 // 有流程id说明是从流程中心来的,需要初始化数据
@@ -541,11 +543,14 @@ export default {
// 变更的责任部门变更 // 变更的责任部门变更
this.resetPersonInfoStructure('3') this.resetPersonInfoStructure('3')
} }
if (this.currentNode === 1) { // 对人员信息进行处理
this.initPersonInfoData(true) if (this.$route.query.processInstanceId) {
} else { if (this.currentNode === 1) {
// 如果不是第一个节点,人员信息全部不可选 this.initPersonInfoData(true)
this.initPersonInfoData(false) } else {
// 如果不是第一个节点,人员信息全部不可选
this.initPersonInfoData(false)
}
} }
// 初始化业务基本信息中组件内容 // 初始化业务基本信息中组件内容
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
@@ -199,11 +199,13 @@ export default {
handleAdd () { handleAdd () {
this.modalType = 'add' this.modalType = 'add'
this.$refs.changeBaseInfoDrawer.add() this.$refs.changeBaseInfoDrawer.add()
this.$refs.changeBaseInfoDrawer.title = this.$t('newlyAdded')
}, },
// 编辑 // 编辑
handleEdit (record, index) { handleEdit (record, index) {
this.modalType = 'edit' + index this.modalType = 'edit' + index
this.$refs.changeBaseInfoDrawer.edit(record) this.$refs.changeBaseInfoDrawer.edit(record)
this.$refs.changeBaseInfoDrawer.title = this.$t('edit')
}, },
// 删除 // 删除
handleDelete (id, index) { handleDelete (id, index) {
@@ -1,6 +1,6 @@
<template> <template>
<a-drawer <a-drawer
:title="$t('standardSelect.standardSelection')" :title="title"
:maskClosable="false" :maskClosable="false"
:width="1000" :width="1000"
placement="right" placement="right"
@@ -213,6 +213,7 @@ export default {
}, },
data () { data () {
return { return {
title: '',
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
model: {}, model: {},
@@ -359,5 +360,15 @@ export default {
.form-flex-item-long { .form-flex-item-long {
width: 100%; width: 100%;
padding: 0;
}
.box-title-text {
.title-text {
width: 200px;
}
.item-model {
width: clac(100% - 220px)
}
} }
</style> </style>
@@ -163,11 +163,13 @@ export default {
handleAdd () { handleAdd () {
this.modalType = 'add' this.modalType = 'add'
this.$refs.jobEndBaseInfoDrawer.add() this.$refs.jobEndBaseInfoDrawer.add()
this.$refs.changeBaseInfoDrawer.title = this.$t('newlyAdded')
}, },
// 编辑 // 编辑
handleEdit (record, index) { handleEdit (record, index) {
this.modalType = 'edit' + index this.modalType = 'edit' + index
this.$refs.jobEndBaseInfoDrawer.edit(record) this.$refs.jobEndBaseInfoDrawer.edit(record)
this.$refs.changeBaseInfoDrawer.title = this.$t('edit')
}, },
// 删除 // 删除
handleDelete (id, index) { handleDelete (id, index) {
@@ -1,6 +1,6 @@
<template> <template>
<a-drawer <a-drawer
:title="$t('standardSelect.standardSelection')" :title="title"
:maskClosable="false" :maskClosable="false"
:width="1000" :width="1000"
placement="right" placement="right"
@@ -118,6 +118,7 @@ export default {
}, },
data () { data () {
return { return {
title: '',
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
model: {}, model: {},