mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
feat: 流程发布校验是否存在进行中的单据
This commit is contained in:
parent
4f8b2830ba
commit
d0da7d67c7
@ -159,7 +159,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="openModelForm('update', scope.row.id, scope.row.processDefinition?.id)"
|
@click="openModelForm('update', scope.row.id)"
|
||||||
v-if="hasPermiUpdate"
|
v-if="hasPermiUpdate"
|
||||||
:disabled="!isManagerUser(scope.row)"
|
:disabled="!isManagerUser(scope.row)"
|
||||||
>
|
>
|
||||||
@ -590,14 +590,13 @@ const handleDeleteCategory = async () => {
|
|||||||
|
|
||||||
/** 添加流程模型弹窗 */
|
/** 添加流程模型弹窗 */
|
||||||
const tagsView = useTagsView()
|
const tagsView = useTagsView()
|
||||||
const openModelForm = async (type: string, id?: number, processDefinitionId?: any) => {
|
const openModelForm = async (type: string, id?: number) => {
|
||||||
if (type === 'create') {
|
if (type === 'create') {
|
||||||
await push({ name: 'BpmModelCreate' })
|
await push({ name: 'BpmModelCreate' })
|
||||||
} else {
|
} else {
|
||||||
const params = processDefinitionId ? { id, type, processDefinitionId } : { id, type }
|
|
||||||
await push({
|
await push({
|
||||||
name: 'BpmModelUpdate',
|
name: 'BpmModelUpdate',
|
||||||
params: params
|
params: { id, type }
|
||||||
})
|
})
|
||||||
// 设置标题
|
// 设置标题
|
||||||
if (type === 'copy') {
|
if (type === 'copy') {
|
||||||
|
@ -162,8 +162,7 @@ const formData: any = ref({
|
|||||||
summarySetting: {
|
summarySetting: {
|
||||||
enable: false,
|
enable: false,
|
||||||
summary: []
|
summary: []
|
||||||
},
|
}
|
||||||
processDefinitionId: undefined
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//流程数据
|
//流程数据
|
||||||
|
Loading…
x
Reference in New Issue
Block a user