|
@@ -116,7 +116,7 @@ function CommitAuditModal(props) {
|
|
* @param {*} type 下一个节点的类型 custom-circle: 审批节点 custom-rect: 业务节点
|
|
* @param {*} type 下一个节点的类型 custom-circle: 审批节点 custom-rect: 业务节点
|
|
* @returns
|
|
* @returns
|
|
*/
|
|
*/
|
|
- const getNextNodes = (currentId, type) => {
|
|
|
|
|
|
+ const getNextNodes = (currentId, type, flag) => {
|
|
const { edges, nodes } = flowDetail;
|
|
const { edges, nodes } = flowDetail;
|
|
if (!currentId) return [];
|
|
if (!currentId) return [];
|
|
// 删除虚线通向的节点
|
|
// 删除虚线通向的节点
|
|
@@ -136,6 +136,8 @@ function CommitAuditModal(props) {
|
|
|
|
|
|
edges.filter(edge => edge.source.cell === currentId);
|
|
edges.filter(edge => edge.source.cell === currentId);
|
|
const auditNodes = nodes.filter(node => {
|
|
const auditNodes = nodes.filter(node => {
|
|
|
|
+ // ========为旧清单提供生成PSR的能力,后期舍弃=========
|
|
|
|
+ if (flag && (node.node_type_psr == 3 || node.node_type_psr == 4)) return true;
|
|
if (type && node.name !== type) {
|
|
if (type && node.name !== type) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -455,7 +457,7 @@ function CommitAuditModal(props) {
|
|
|
|
|
|
const nextNodesList = useMemo(() => {
|
|
const nextNodesList = useMemo(() => {
|
|
if (!auditId && !currentNodeId) return [];
|
|
if (!auditId && !currentNodeId) return [];
|
|
- return getNextNodes(auditId || currentNodeId, 'custom-rect');
|
|
|
|
|
|
+ return getNextNodes(auditId || currentNodeId, 'custom-rect', true);
|
|
}, [auditId, currentNodeId, flowDetail]);
|
|
}, [auditId, currentNodeId, flowDetail]);
|
|
|
|
|
|
const getReComputeAudit = (items, changedValues) => {
|
|
const getReComputeAudit = (items, changedValues) => {
|