|
@@ -106,15 +106,15 @@ function Detail(props) {
|
|
const cellPosition = useRef({});
|
|
const cellPosition = useRef({});
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
- if (!version.id) return;
|
|
|
|
|
|
+ if (!version.attachment_id) return;
|
|
dispatch({
|
|
dispatch({
|
|
type: 'detail/QueryExcelFiles',
|
|
type: 'detail/QueryExcelFiles',
|
|
payload: {
|
|
payload: {
|
|
- file_type: 1,
|
|
|
|
- excel_id: version.id,
|
|
|
|
|
|
+ // file_type: 1,
|
|
|
|
+ excel_id: version.attachment_id,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
- }, [version.id]);
|
|
|
|
|
|
+ }, [version.attachment_id]);
|
|
|
|
|
|
const projectId = parseInt(params.projectId);
|
|
const projectId = parseInt(params.projectId);
|
|
const templateId = parseInt(params.templateId);
|
|
const templateId = parseInt(params.templateId);
|
|
@@ -713,7 +713,7 @@ function Detail(props) {
|
|
<Menu.Item key="bomDetail">详情</Menu.Item>,
|
|
<Menu.Item key="bomDetail">详情</Menu.Item>,
|
|
<Menu.Item key="export">导出</Menu.Item>,
|
|
<Menu.Item key="export">导出</Menu.Item>,
|
|
<Menu.Item key="compare">比对</Menu.Item>,
|
|
<Menu.Item key="compare">比对</Menu.Item>,
|
|
- <Menu.Item key="attachment">附件</Menu.Item>,
|
|
|
|
|
|
+ // <Menu.Item key="attachment">附件</Menu.Item>,
|
|
];
|
|
];
|
|
// version.audit_status:4 为副本。不可操作
|
|
// version.audit_status:4 为副本。不可操作
|
|
if (version.audit_status != 4) {
|
|
if (version.audit_status != 4) {
|
|
@@ -1180,12 +1180,6 @@ function Detail(props) {
|
|
onClose={() => setVersionTreeVisible(false)}
|
|
onClose={() => setVersionTreeVisible(false)}
|
|
/>
|
|
/>
|
|
|
|
|
|
- <CommentContent
|
|
|
|
- title="单元格沟通记录"
|
|
|
|
- comment={comment}
|
|
|
|
- onSubmit={handleSubmitCell}
|
|
|
|
- loading={loading.effects['detail/queryComment'] || loading.effects['detail/addComment']}
|
|
|
|
- />
|
|
|
|
<FormAndFilesNode
|
|
<FormAndFilesNode
|
|
title="表单信息及附件"
|
|
title="表单信息及附件"
|
|
formData={version?.ding_schema}
|
|
formData={version?.ding_schema}
|
|
@@ -1193,6 +1187,12 @@ function Detail(props) {
|
|
loading={loading.effects['detail/QueryExcelFiles']}
|
|
loading={loading.effects['detail/QueryExcelFiles']}
|
|
downloadFile={downloadFile}
|
|
downloadFile={downloadFile}
|
|
/>
|
|
/>
|
|
|
|
+ <CommentContent
|
|
|
|
+ title="单元格沟通记录"
|
|
|
|
+ comment={comment}
|
|
|
|
+ onSubmit={handleSubmitCell}
|
|
|
|
+ loading={loading.effects['detail/queryComment'] || loading.effects['detail/addComment']}
|
|
|
|
+ />
|
|
|
|
|
|
<RightDrawer
|
|
<RightDrawer
|
|
version={version}
|
|
version={version}
|
|
@@ -1232,7 +1232,7 @@ function Detail(props) {
|
|
onClose={() => setAuditVisible(false)}
|
|
onClose={() => setAuditVisible(false)}
|
|
onOk={onAudit}
|
|
onOk={onAudit}
|
|
/>
|
|
/>
|
|
- <FilesModal
|
|
|
|
|
|
+ {/* <FilesModal
|
|
projectId={projectId}
|
|
projectId={projectId}
|
|
typeOptions={typeOptions}
|
|
typeOptions={typeOptions}
|
|
// loading={getFilesLoading()}
|
|
// loading={getFilesLoading()}
|
|
@@ -1243,7 +1243,7 @@ function Detail(props) {
|
|
DeleteFile={deleteFile}
|
|
DeleteFile={deleteFile}
|
|
downloadFile={downloadFile}
|
|
downloadFile={downloadFile}
|
|
data={fileList}
|
|
data={fileList}
|
|
- />
|
|
|
|
|
|
+ /> */}
|
|
<VersionModal
|
|
<VersionModal
|
|
typeOptions={typeOptions}
|
|
typeOptions={typeOptions}
|
|
loading={getLoading()}
|
|
loading={getLoading()}
|