diff --git a/src/components/CustomPages/FO/FO015ShowPrint.js b/src/components/CustomPages/FO/FO015ShowPrint.js index e5cc0b9..1838e97 100644 --- a/src/components/CustomPages/FO/FO015ShowPrint.js +++ b/src/components/CustomPages/FO/FO015ShowPrint.js @@ -93,7 +93,7 @@ class FO015ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } + } }); } diff --git a/src/components/CustomPages/FO/FO017ShowPrint.js b/src/components/CustomPages/FO/FO017ShowPrint.js index b74b43b..08f5ca6 100644 --- a/src/components/CustomPages/FO/FO017ShowPrint.js +++ b/src/components/CustomPages/FO/FO017ShowPrint.js @@ -82,7 +82,7 @@ class FO017ShowPrint extends React.Component { } this.onClickApprove(false); } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } + } }); } diff --git a/src/components/CustomPages/FO/FO017ShowPrintJD.js b/src/components/CustomPages/FO/FO017ShowPrintJD.js index 90f3a64..ffd64c8 100644 --- a/src/components/CustomPages/FO/FO017ShowPrintJD.js +++ b/src/components/CustomPages/FO/FO017ShowPrintJD.js @@ -82,7 +82,6 @@ class FO017ShowPrintJD extends React.Component { } this.onClickApprove(false); } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } } }); } diff --git a/src/components/CustomPages/FO/FO019ShowPrint.js b/src/components/CustomPages/FO/FO019ShowPrint.js index 15f9a71..6668054 100644 --- a/src/components/CustomPages/FO/FO019ShowPrint.js +++ b/src/components/CustomPages/FO/FO019ShowPrint.js @@ -85,8 +85,6 @@ class FO019ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} } }); } diff --git a/src/components/CustomPages/FO/FO021ShowPrint.js b/src/components/CustomPages/FO/FO021ShowPrint.js index 6f64cb3..1c5dd69 100644 --- a/src/components/CustomPages/FO/FO021ShowPrint.js +++ b/src/components/CustomPages/FO/FO021ShowPrint.js @@ -88,7 +88,6 @@ class FO021ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } } }); } diff --git a/src/components/CustomPages/FO/FO022ShowPrint.js b/src/components/CustomPages/FO/FO022ShowPrint.js index 567f989..ce3d5f5 100644 --- a/src/components/CustomPages/FO/FO022ShowPrint.js +++ b/src/components/CustomPages/FO/FO022ShowPrint.js @@ -104,7 +104,7 @@ class FO022ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } + } }); } diff --git a/src/components/CustomPages/FO/FO025ShowPrint.js b/src/components/CustomPages/FO/FO025ShowPrint.js index 918501d..56d9c8a 100644 --- a/src/components/CustomPages/FO/FO025ShowPrint.js +++ b/src/components/CustomPages/FO/FO025ShowPrint.js @@ -82,7 +82,7 @@ class FO025ShowPrint extends React.Component { } this.onClickApprove(false); } - else { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!'); } + } }); } diff --git a/src/components/CustomPages/FO/FO035ShowPrint.js b/src/components/CustomPages/FO/FO035ShowPrint.js index a53d47d..72b2ff6 100644 --- a/src/components/CustomPages/FO/FO035ShowPrint.js +++ b/src/components/CustomPages/FO/FO035ShowPrint.js @@ -74,8 +74,6 @@ class FO035ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} } }); } diff --git a/src/components/CustomPages/FO/FO037ShowPrint.js b/src/components/CustomPages/FO/FO037ShowPrint.js index 73869af..6296fb5 100644 --- a/src/components/CustomPages/FO/FO037ShowPrint.js +++ b/src/components/CustomPages/FO/FO037ShowPrint.js @@ -74,8 +74,7 @@ class FO037ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} + } }); } diff --git a/src/components/CustomPages/FO/FO041ShowPrint.js b/src/components/CustomPages/FO/FO041ShowPrint.js index b01ea89..c8b6cb5 100644 --- a/src/components/CustomPages/FO/FO041ShowPrint.js +++ b/src/components/CustomPages/FO/FO041ShowPrint.js @@ -74,8 +74,7 @@ class FO041ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} + } }); } diff --git a/src/components/CustomPages/FO/FO043ShowPrint.js b/src/components/CustomPages/FO/FO043ShowPrint.js index 49a7819..6c9b6e2 100644 --- a/src/components/CustomPages/FO/FO043ShowPrint.js +++ b/src/components/CustomPages/FO/FO043ShowPrint.js @@ -74,8 +74,7 @@ class FO043ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} + } }); } diff --git a/src/components/CustomPages/FO/FO045ShowPrint.js b/src/components/CustomPages/FO/FO045ShowPrint.js index a80fc6e..77104cc 100644 --- a/src/components/CustomPages/FO/FO045ShowPrint.js +++ b/src/components/CustomPages/FO/FO045ShowPrint.js @@ -74,8 +74,7 @@ class FO045ShowPrint extends React.Component { this.setState({ BtnAgreeDisplay: 'inline' }) } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} + } }); } diff --git a/src/components/CustomPages/SK/OperateLog.css b/src/components/CustomPages/SK/OperateLog.css index 3356e7d..3f2952f 100644 --- a/src/components/CustomPages/SK/OperateLog.css +++ b/src/components/CustomPages/SK/OperateLog.css @@ -156,43 +156,6 @@ /* margin-right: 15px; */ width: 120px; height: 40px; - background-color: #70AD47; - color: white; - border: 1px solid white; - /* border: 1px solid #ddd; */ - display: flex; - align-items: center; - justify-content: center; - margin-top: 20px; - position: relative; - border-radius: 50px; - margin-left: 25px; -} - -/* 超时处理 */ -.stepxOutTime { - /* margin-right: 15px; */ - width: 120px; - height: 40px; - background-color: #FFC000; - color: white; - border: 1px solid white; - /* border: 1px solid #ddd; */ - display: flex; - align-items: center; - justify-content: center; - margin-top: 20px; - position: relative; - border-radius: 50px; - margin-left: 25px; -} - -/* 未处理 */ -.stepxEnable { - /* margin-right: 15px; */ - width: 120px; - height: 40px; - background-color: #A5A5A5; color: white; border: 1px solid white; /* border: 1px solid #ddd; */ diff --git a/src/components/CustomPages/SK/SK002ShowPrint.js b/src/components/CustomPages/SK/SK002ShowPrint.js index e1e8092..f21d33b 100644 --- a/src/components/CustomPages/SK/SK002ShowPrint.js +++ b/src/components/CustomPages/SK/SK002ShowPrint.js @@ -145,8 +145,6 @@ class SK002ShowPrint extends React.Component { // this.setState({ isFinished: 'inline' }) // } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} } }); } diff --git a/src/components/CustomPages/SK/SK004ShowPrint.js b/src/components/CustomPages/SK/SK004ShowPrint.js index ebd0b87..bdd0e9b 100644 --- a/src/components/CustomPages/SK/SK004ShowPrint.js +++ b/src/components/CustomPages/SK/SK004ShowPrint.js @@ -203,8 +203,6 @@ class SK004ShowPrint extends React.Component { // this.setState({ isFinished: 'inline' }) // } } - else - { message.error('请先尝试刷新,若仍然加载失败,请联系管理员排查!');} } }); } diff --git a/src/components/CustomPages/SK/SK006ShowOperateLog.js b/src/components/CustomPages/SK/SK006ShowOperateLog.js index 78a8b91..40caa60 100644 --- a/src/components/CustomPages/SK/SK006ShowOperateLog.js +++ b/src/components/CustomPages/SK/SK006ShowOperateLog.js @@ -1,4 +1,4 @@ -import { Button, Descriptions, Badge, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd'; +import { Button, Descriptions, Badge, Popconfirm, Row, Col, Form, Input, Select, Table, Modal } from 'antd'; import React from 'react'; import { initFilter, @@ -8,6 +8,7 @@ import { showApprove, guid, ShowDateTime, + GetFileModel, } from '../../../utils/common.js'; import ReactToPrint from 'react-to-print'; import { ExportToExcel } from '@woowalker/feui'; @@ -17,6 +18,7 @@ import moment from 'moment'; import { message } from 'antd/lib/index'; import styles from './OperateLog.css'; import config from '../../../config.js'; +import FormPage from '../../FormPage'; class SK006ShowOperateLog extends React.Component { constructor(props) { @@ -26,6 +28,17 @@ class SK006ShowOperateLog extends React.Component { riskCount: 1, riskHeight: 50, opEnd: null, + detailForm: { + isShow: false, + formCode: '', + title: '', + ID: '', + }, + fileData: [], + fileForm: { + title: '', + visible: false, + }, // dateFirst: [ // [{ OPERATEPOINT: 10 }, { OPERATEPOINT: 20 }, { OPERATEPOINT: 30 }, { OPERATEPOINT: 40 }], // [{ OPERATEPOINT: 48 }, { OPERATEPOINT: 50 }, { OPERATEPOINT: 60 }, { OPERATEPOINT: 70 }, { OPERATEPOINT: 80 }], @@ -87,6 +100,35 @@ class SK006ShowOperateLog extends React.Component { }, }); }; + showDetailModalPage = (ID, CODE) => { + if (ID == null) return message.warning('暂无待办'); + const newtmpData = { + data: { + id: ID, + // USER_ID: USER_ID, + }, + formCode: CODE, + }; + this.setState({ tmpDataPage: newtmpData }, () => { + var detailForm = { + isShow: true, + title: '', + }; + console.log(this.state.tmpDataPage, '00'); + this.setState({ + detailForm: detailForm, + }); + }); + }; + //详情弹窗关闭(隐藏) + detailFormClose = () => { + var detailForm = { + isShow: false, + }; + this.setState({ + detailForm: detailForm, + }); + }; render() { const { data, riskCount, dataRiskMore, opEnd, riskHeight } = this.state; const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums; @@ -108,14 +150,22 @@ class SK006ShowOperateLog extends React.Component { data?.map((item, index) => { // 判断当前item的logList中是否所有STATUS都是0 const allStatusZero = item.logList?.every((log) => log.STATUS === 0); + // 获取上一个item的FORM_NAME + const prevFormName = index > 0 ? data[index - 1].FORM_NAME : null; + // 判断当前FORM_NAME是否与上一个重复 + const isDuplicate = item.FORM_NAME === prevFormName; + { return (