|
@@ -138,7 +138,6 @@ function Detail(props) {
|
|
return data;
|
|
return data;
|
|
}, [auditList, version]);
|
|
}, [auditList, version]);
|
|
const active_audit = flow.active_audit;
|
|
const active_audit = flow.active_audit;
|
|
- console.log(flow);
|
|
|
|
const isAuditor = useMemo(() => {
|
|
const isAuditor = useMemo(() => {
|
|
const getUserRole = () => {
|
|
const getUserRole = () => {
|
|
return flow.currentNode.auditor == currentUser.ID;
|
|
return flow.currentNode.auditor == currentUser.ID;
|
|
@@ -231,7 +230,6 @@ function Detail(props) {
|
|
};
|
|
};
|
|
|
|
|
|
const onClickCell = (cell, position, s) => {
|
|
const onClickCell = (cell, position, s) => {
|
|
- console.log(cell);
|
|
|
|
if (cell?.cid && !statusRef.current.edit) {
|
|
if (cell?.cid && !statusRef.current.edit) {
|
|
let payload = {
|
|
let payload = {
|
|
sheet_id: s.order || '0',
|
|
sheet_id: s.order || '0',
|
|
@@ -273,7 +271,6 @@ function Detail(props) {
|
|
sheets.forEach(item => {
|
|
sheets.forEach(item => {
|
|
delete item.data;
|
|
delete item.data;
|
|
});
|
|
});
|
|
- console.log(sheets);
|
|
|
|
let params = {
|
|
let params = {
|
|
...values,
|
|
...values,
|
|
id: id,
|
|
id: id,
|
|
@@ -316,7 +313,6 @@ function Detail(props) {
|
|
sheets.forEach(item => {
|
|
sheets.forEach(item => {
|
|
delete item.data;
|
|
delete item.data;
|
|
});
|
|
});
|
|
- console.log(sheets);
|
|
|
|
let params = {
|
|
let params = {
|
|
...version,
|
|
...version,
|
|
data: JSON.stringify(sheets),
|
|
data: JSON.stringify(sheets),
|
|
@@ -598,7 +594,6 @@ function Detail(props) {
|
|
};
|
|
};
|
|
|
|
|
|
const handleMenuClick = e => {
|
|
const handleMenuClick = e => {
|
|
- console.log('click', e);
|
|
|
|
switch (e.key) {
|
|
switch (e.key) {
|
|
case 'back':
|
|
case 'back':
|
|
// 返回
|
|
// 返回
|
|
@@ -710,7 +705,6 @@ function Detail(props) {
|
|
}
|
|
}
|
|
return bool;
|
|
return bool;
|
|
};
|
|
};
|
|
- console.log('是否有权限提交流转 ', getIsSubmit());
|
|
|
|
if (getIsSubmit() && version.audit_status != 3)
|
|
if (getIsSubmit() && version.audit_status != 3)
|
|
menuList.push(<Menu.Item key="commitAudit">提交流转</Menu.Item>);
|
|
menuList.push(<Menu.Item key="commitAudit">提交流转</Menu.Item>);
|
|
|
|
|
|
@@ -774,7 +768,6 @@ function Detail(props) {
|
|
|
|
|
|
const getRowOneList = () => {
|
|
const getRowOneList = () => {
|
|
const obj = sheetRef.current.getSheetJson();
|
|
const obj = sheetRef.current.getSheetJson();
|
|
- console.log(obj);
|
|
|
|
const list = [];
|
|
const list = [];
|
|
obj.data.forEach(item => {
|
|
obj.data.forEach(item => {
|
|
list.push(item.data[0]);
|
|
list.push(item.data[0]);
|
|
@@ -830,7 +823,7 @@ function Detail(props) {
|
|
},
|
|
},
|
|
onChange(info) {
|
|
onChange(info) {
|
|
if (info.file.status !== 'uploading') {
|
|
if (info.file.status !== 'uploading') {
|
|
- console.log(info.file, info.fileList);
|
|
|
|
|
|
+ // console.log(info.file, info.fileList);
|
|
}
|
|
}
|
|
if (info.file.status === 'done') {
|
|
if (info.file.status === 'done') {
|
|
message.success(`${info.file.name} 文件上传成功`);
|
|
message.success(`${info.file.name} 文件上传成功`);
|