|  | @@ -22,6 +22,7 @@ import MergeModal from './MergeModal';
 | 
	
		
			
				|  |  |  import { GetTokenFromUrl, getToken } from '@/utils/utils';
 | 
	
		
			
				|  |  |  import { queryDetail } from '@/services/boom';
 | 
	
		
			
				|  |  |  import HistoryDrawer from './HistoryDrawer';
 | 
	
		
			
				|  |  | +import AuditFlow from './AuditFlow';
 | 
	
		
			
				|  |  |  const LocalData = localStorage.luckysheet;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const { Option } = Select;
 | 
	
	
		
			
				|  | @@ -41,6 +42,7 @@ function Detail(props) {
 | 
	
		
			
				|  |  |      flowDetail,
 | 
	
		
			
				|  |  |      versionTree,
 | 
	
		
			
				|  |  |      match: { params },
 | 
	
		
			
				|  |  | +    instanceDetail,
 | 
	
		
			
				|  |  |    } = props;
 | 
	
		
			
				|  |  |    const [versionTreeVisible, setVersionTreeVisible] = useState(false);
 | 
	
		
			
				|  |  |    const [commentVisible, setCommentVisible] = useState(false);
 | 
	
	
		
			
				|  | @@ -78,6 +80,26 @@ function Detail(props) {
 | 
	
		
			
				|  |  |    const projectId = parseInt(params.projectId);
 | 
	
		
			
				|  |  |    const templateId = parseInt(params.templateId);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  const auditDetail = useMemo(() => {
 | 
	
		
			
				|  |  | +    const { tasks, form_component_values } = instanceDetail;
 | 
	
		
			
				|  |  | +    let data = {
 | 
	
		
			
				|  |  | +      processCode: '',
 | 
	
		
			
				|  |  | +      deptId: '14169890',
 | 
	
		
			
				|  |  | +      userId: '16569001414345099',
 | 
	
		
			
				|  |  | +      formComponentValues: form_component_values?.filter(item => item.name),
 | 
	
		
			
				|  |  | +      activityId: '',
 | 
	
		
			
				|  |  | +      status: version.active_audit,
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  | +    if (version?.flow_id && tasks?.length > 0) {
 | 
	
		
			
				|  |  | +      let item = flowDetail.nodes.find(item => item.Id == version.template_node_id);
 | 
	
		
			
				|  |  | +      if (!item) return data;
 | 
	
		
			
				|  |  | +      data.processCode = item.process_code;
 | 
	
		
			
				|  |  | +      data.activityId = tasks[tasks.length - 1]?.activity_id;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    console.log('====================auditDetail ', data);
 | 
	
		
			
				|  |  | +    return data;
 | 
	
		
			
				|  |  | +  }, [instanceDetail, version]);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    const flow = useMemo(() => {
 | 
	
		
			
				|  |  |      let data = {
 | 
	
		
			
				|  |  |        active: 0,
 | 
	
	
		
			
				|  | @@ -98,7 +120,6 @@ function Detail(props) {
 | 
	
		
			
				|  |  |        item.currentNode = item.list.FlowNodes[item.current];
 | 
	
		
			
				|  |  |        data = item;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      return data;
 | 
	
		
			
				|  |  |    }, [auditList, version]);
 | 
	
		
			
				|  |  |    const active_audit = flow.active_audit;
 | 
	
	
		
			
				|  | @@ -926,8 +947,15 @@ function Detail(props) {
 | 
	
		
			
				|  |  |            onChange={e => exportExcl(e.target.files)}
 | 
	
		
			
				|  |  |          />
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | -      <TimeNode flow={flow} isAuditor={isAuditor} onApprove={onApprove}></TimeNode>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      {/* <TimeNode flow={flow} isAuditor={isAuditor} onApprove={onApprove}></TimeNode> */}
 | 
	
		
			
				|  |  | +      <AuditFlow
 | 
	
		
			
				|  |  | +        status={auditDetail.status}
 | 
	
		
			
				|  |  | +        processCode={auditDetail.processCode}
 | 
	
		
			
				|  |  | +        deptId="14169890"
 | 
	
		
			
				|  |  | +        userId="16569001414345099"
 | 
	
		
			
				|  |  | +        activityId={auditDetail.activityId}
 | 
	
		
			
				|  |  | +        formComponentValues={auditDetail.formComponentValues}
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  |        {renderAlert()}
 | 
	
		
			
				|  |  |        {/* 判断是否为比对模式 */}
 | 
	
		
			
				|  |  |        {compareList.length == 2 ? (
 | 
	
	
		
			
				|  | @@ -1037,6 +1065,7 @@ export default connect(({ detail, user, xflow, loading }) => ({
 | 
	
		
			
				|  |  |    fileList: detail.fileList,
 | 
	
		
			
				|  |  |    history: detail.history,
 | 
	
		
			
				|  |  |    comment: detail.comment,
 | 
	
		
			
				|  |  | +  instanceDetail: detail.dingInstanceDetail,
 | 
	
		
			
				|  |  |    currentUser: user.currentUser,
 | 
	
		
			
				|  |  |    roleList: detail.roleList,
 | 
	
		
			
				|  |  |    versionList: detail.versionList,
 |