|
@@ -1,5 +1,5 @@
|
|
|
import React, { useEffect, useState, useRef, useMemo } from 'react';
|
|
|
-import { UnorderedListOutlined, PlusOutlined } from '@ant-design/icons';
|
|
|
+import { UnorderedListOutlined, PlusOutlined, InfoOutlined } from '@ant-design/icons';
|
|
|
import { Button, Modal, message, Alert, Avatar } from 'antd';
|
|
|
import { connect } from 'dva';
|
|
|
import styles from './Index.less';
|
|
@@ -512,7 +512,7 @@ function Detail(props) {
|
|
|
}, [versionList]);
|
|
|
|
|
|
return (
|
|
|
- <div>
|
|
|
+ <>
|
|
|
<div className={styles.top}>
|
|
|
<div>
|
|
|
<Button type="primary" style={{ marginRight: 20 }} onClick={() => setFlowVisible(true)}>
|
|
@@ -573,54 +573,60 @@ function Detail(props) {
|
|
|
onChange={e => exportExcl(e.target.files)}
|
|
|
/>
|
|
|
</div>
|
|
|
- <TimeNode
|
|
|
- flow={flow}
|
|
|
- flowDetail={flowDetail}
|
|
|
- isAuditor={isAuditor}
|
|
|
- version={version}
|
|
|
- templateId={templateId}
|
|
|
- projectId={projectId}
|
|
|
- setAuditVisible={setAuditVisible}
|
|
|
- ></TimeNode>
|
|
|
- <div
|
|
|
- className={styles.content}
|
|
|
- style={{
|
|
|
- // 合同清单先显示附件再显示清单详情
|
|
|
- flexDirection: version?.TemplateNodeInfo?.flow_id == 9 ? 'column-reverse' : 'column',
|
|
|
- }}
|
|
|
- >
|
|
|
- {/* 判断是否为比对模式 */}
|
|
|
- {compareList.length == 2 ? (
|
|
|
- <>
|
|
|
- <Alert
|
|
|
- message={`比对结果:${updateCount.diff}项差异。${updateCount.add}项新增`}
|
|
|
- type="info"
|
|
|
- />
|
|
|
- <div className={styles.sheetBox}>{compareList.map(renderSheetDom)}</div>
|
|
|
- </>
|
|
|
- ) : (
|
|
|
- <div className={styles.sheetBox}>
|
|
|
- {version.id && (
|
|
|
- <LuckySheet
|
|
|
- className={styles.sheet}
|
|
|
- ref={sheetRef}
|
|
|
- onClickCell={onClickCell}
|
|
|
- version={version}
|
|
|
- templateId={templateId}
|
|
|
- getUser={getUser}
|
|
|
- onUpdate={onUpdate}
|
|
|
- onDelSheet={onDelSheet}
|
|
|
+ <div style={{ display: 'flex' }}>
|
|
|
+ <TimeNode
|
|
|
+ flow={flow}
|
|
|
+ flowDetail={flowDetail}
|
|
|
+ isAuditor={isAuditor}
|
|
|
+ version={version}
|
|
|
+ templateId={templateId}
|
|
|
+ projectId={projectId}
|
|
|
+ setAuditVisible={setAuditVisible}
|
|
|
+ stepDirection="vertical"
|
|
|
+ style={{ maxWidth: '20%', display: 'inline', marginRight: '20px' }}
|
|
|
+ ></TimeNode>
|
|
|
+ <div
|
|
|
+ className={styles.content}
|
|
|
+ style={{
|
|
|
+ width: '100%',
|
|
|
+ // 合同清单先显示附件再显示清单详情
|
|
|
+ flexDirection: version?.TemplateNodeInfo?.flow_id == 9 ? 'column-reverse' : 'column',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {/* 判断是否为比对模式 */}
|
|
|
+ {compareList.length == 2 ? (
|
|
|
+ <>
|
|
|
+ <Alert
|
|
|
+ message={`比对结果:${updateCount.diff}项差异。${updateCount.add}项新增`}
|
|
|
+ type="info"
|
|
|
/>
|
|
|
- )}
|
|
|
- </div>
|
|
|
- )}
|
|
|
+ <div className={styles.sheetBox}>{compareList.map(renderSheetDom)}</div>
|
|
|
+ </>
|
|
|
+ ) : (
|
|
|
+ <div className={styles.sheetBox}>
|
|
|
+ {version.id && (
|
|
|
+ <LuckySheet
|
|
|
+ className={styles.sheet}
|
|
|
+ ref={sheetRef}
|
|
|
+ onClickCell={onClickCell}
|
|
|
+ version={version}
|
|
|
+ templateId={templateId}
|
|
|
+ getUser={getUser}
|
|
|
+ onUpdate={onUpdate}
|
|
|
+ onDelSheet={onDelSheet}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
|
|
|
- <FormAndFilesNode
|
|
|
- formData={version?.ding_schema}
|
|
|
- excelFileList={excelFileList}
|
|
|
- version={version}
|
|
|
- />
|
|
|
+ <FormAndFilesNode
|
|
|
+ formData={version?.ding_schema}
|
|
|
+ excelFileList={excelFileList}
|
|
|
+ version={version}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<CommentContent
|
|
|
title="单元格沟通记录"
|
|
|
comment={comment}
|
|
@@ -694,7 +700,7 @@ function Detail(props) {
|
|
|
luckysheet={sheetRef}
|
|
|
templateId={templateId}
|
|
|
/>
|
|
|
- </div>
|
|
|
+ </>
|
|
|
);
|
|
|
}
|
|
|
|