|
@@ -1,5 +1,5 @@
|
|
import React, { useEffect } from 'react';
|
|
import React, { useEffect } from 'react';
|
|
-import { Modal, Input, Form, Select } from 'antd';
|
|
|
|
|
|
+import { Modal, Input, Form, Select, message } from 'antd';
|
|
|
|
|
|
// 新建流程
|
|
// 新建流程
|
|
function VersionModal(props) {
|
|
function VersionModal(props) {
|
|
@@ -19,17 +19,17 @@ function VersionModal(props) {
|
|
const formLayout = { labelCol: { span: 4 }, wrapperCol: { span: 14 } };
|
|
const formLayout = { labelCol: { span: 4 }, wrapperCol: { span: 14 } };
|
|
|
|
|
|
const handleOk = async () => {
|
|
const handleOk = async () => {
|
|
- let currentNode = flowDetail.nodes.find?.(item => item.Id == version.template_node_id);
|
|
|
|
- if (!currentNode.muti_version) {
|
|
|
|
- // audit_status=4 表示为清单推进后留存的副本.不计入多清单计算
|
|
|
|
- let serviceVersion = versionList.find(
|
|
|
|
- item => item.audit_status != 4 && item.template_node_id == currentNode.Id
|
|
|
|
- );
|
|
|
|
- if (serviceVersion) {
|
|
|
|
- message.error(`新建清单失败!业务节点【${currentNode.label}】只能有一个清单!`);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ // let currentNode = flowDetail.nodes.find?.(item => item.Id == version.template_node_id);
|
|
|
|
+ // if (!currentNode.muti_version) {
|
|
|
|
+ // // audit_status=4 表示为清单推进后留存的副本.不计入多清单计算
|
|
|
|
+ // let serviceVersion = versionList.find(
|
|
|
|
+ // item => item.audit_status != 4 && item.template_node_id == currentNode.Id
|
|
|
|
+ // );
|
|
|
|
+ // if (serviceVersion) {
|
|
|
|
+ // message.error(`新建清单失败!业务节点【${currentNode.label}】只能有一个清单!`);
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
let fieldsValue = await form.validateFields();
|
|
let fieldsValue = await form.validateFields();
|
|
if (!fieldsValue.classify_id) fieldsValue.classify_id = 1;
|
|
if (!fieldsValue.classify_id) fieldsValue.classify_id = 1;
|
|
fieldsValue.new_version = 0;
|
|
fieldsValue.new_version = 0;
|