-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SE/SE071ShowPrint.js b/src/components/CustomPages/SE/SE071ShowPrint.js
index 361339a..f9b41aa 100644
--- a/src/components/CustomPages/SE/SE071ShowPrint.js
+++ b/src/components/CustomPages/SE/SE071ShowPrint.js
@@ -55,7 +55,7 @@ class SE071ShowPrint extends React.Component {
extendInclude(json, 'Nav_ListPlanDetail.Nav_ListDetailDepartment.Nav_Department')
extendInclude(json, 'Nav_ListPlanDetail.Nav_TrainTypeEnum')
extendInclude(json, 'Nav_ListPlanDetail.Nav_ApproveRole')
- extendInclude(json, "Nav_Approve.Nav_ApproveDetails.Nav_ApproveUser");
+ // extendInclude(json, "Nav_Approve.Nav_ApproveDetails.Nav_ApproveUser");
this.props.dispatch({
type: 'app/getDataByPost',
payload: json,
@@ -66,6 +66,7 @@ class SE071ShowPrint extends React.Component {
data: ret,
})
}
+ approveView(this, 'inline', false);
}
});
}
@@ -82,7 +83,6 @@ class SE071ShowPrint extends React.Component {
-
(this.componentRef = el)} style={{ padding: '20px', paddingTop: '20px' }} id={'tableId' + this.props.data.id}>
年度培训计划
{
@@ -155,20 +155,22 @@ class SE071ShowPrint extends React.Component {
})}
-
-
- | 审批详情 | {/* 审核意见 如果已经审批 显示审批信息 */}
+ {/* 审核意见 如果已经审批 显示审批信息 */}
+ {/*
+ | 审批详情 |
{
showApprove(data.Nav_Approve?.Nav_ApproveDetails, enums.NodeApproveStatus.enums, config.picServerHost, 200)
}
|
-
+ */}
: null
}
+
+
{
GetFileModel(Modal, FormPage, this, this.state.fileForm.visible)
diff --git a/src/components/CustomPages/SK/SK002ShowPrint.js b/src/components/CustomPages/SK/SK002ShowPrint.js
index d9e13ce..d5882d0 100644
--- a/src/components/CustomPages/SK/SK002ShowPrint.js
+++ b/src/components/CustomPages/SK/SK002ShowPrint.js
@@ -1,6 +1,6 @@
import { Button, Descriptions,Popconfirm, Row, Col, Form,Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule,setDataFieldValue, guid, initQueryFilter } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule,setDataFieldValue, guid, initQueryFilter, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -140,7 +140,7 @@ class SK002ShowPrint extends React.Component {
}else{
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
diff --git a/src/components/CustomPages/SK/SK004ShowPrint.js b/src/components/CustomPages/SK/SK004ShowPrint.js
index 22cada7..f6c8821 100644
--- a/src/components/CustomPages/SK/SK004ShowPrint.js
+++ b/src/components/CustomPages/SK/SK004ShowPrint.js
@@ -1,6 +1,6 @@
import { Button, Descriptions, Popconfirm, Row, Col, Form, Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -194,7 +194,7 @@ class SK004ShowPrint extends React.Component {
} else {
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
@@ -212,15 +212,6 @@ class SK004ShowPrint extends React.Component {
XLSX.writeFile(wb, "双控企业库.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
showModalContent = (item) => {
this.setState({
showDetailContent: true,
diff --git a/src/components/CustomPages/SK/SK006ShowPrint.js b/src/components/CustomPages/SK/SK006ShowPrint.js
index 5761f1f..9d7ace2 100644
--- a/src/components/CustomPages/SK/SK006ShowPrint.js
+++ b/src/components/CustomPages/SK/SK006ShowPrint.js
@@ -78,7 +78,7 @@ class SK006ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -115,7 +115,7 @@ class SK006ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -128,21 +128,12 @@ class SK006ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全检查通知.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK010ShowPrint.js b/src/components/CustomPages/SK/SK010ShowPrint.js
index 397a080..91e4ca8 100644
--- a/src/components/CustomPages/SK/SK010ShowPrint.js
+++ b/src/components/CustomPages/SK/SK010ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -90,7 +90,7 @@ class SK010ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -103,21 +103,12 @@ class SK010ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全检查记录.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK012ShowPrint.js b/src/components/CustomPages/SK/SK012ShowPrint.js
index f861514..8f5dcb6 100644
--- a/src/components/CustomPages/SK/SK012ShowPrint.js
+++ b/src/components/CustomPages/SK/SK012ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, showUserSign } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, showUserSign, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -109,7 +109,7 @@ class SK012ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -122,21 +122,14 @@ class SK012ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全检查记录汇总表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK014ShowPrint.js b/src/components/CustomPages/SK/SK014ShowPrint.js
index fa3a205..abc2ba8 100644
--- a/src/components/CustomPages/SK/SK014ShowPrint.js
+++ b/src/components/CustomPages/SK/SK014ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, showUserSign } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, showUserSign, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -90,7 +90,7 @@ class SK014ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -103,21 +103,12 @@ class SK014ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "隐患上报表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK016ShowPrint.js b/src/components/CustomPages/SK/SK016ShowPrint.js
index 7ce2574..0d5cc30 100644
--- a/src/components/CustomPages/SK/SK016ShowPrint.js
+++ b/src/components/CustomPages/SK/SK016ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -71,7 +71,7 @@ class SK016ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -84,15 +84,6 @@ class SK016ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "手动隐患上报表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
diff --git a/src/components/CustomPages/SK/SK018ShowPrint.js b/src/components/CustomPages/SK/SK018ShowPrint.js
index 64bb8a6..bc1995d 100644
--- a/src/components/CustomPages/SK/SK018ShowPrint.js
+++ b/src/components/CustomPages/SK/SK018ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -102,7 +102,7 @@ class SK018ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -115,21 +115,12 @@ class SK018ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "隐患确认单.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK020ShowPrint.js b/src/components/CustomPages/SK/SK020ShowPrint.js
index 65ada03..4368e10 100644
--- a/src/components/CustomPages/SK/SK020ShowPrint.js
+++ b/src/components/CustomPages/SK/SK020ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -90,7 +90,7 @@ class SK020ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -103,21 +103,12 @@ class SK020ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "隐患整改通知表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK022ShowPrint.js b/src/components/CustomPages/SK/SK022ShowPrint.js
index e9db354..2dbd29b 100644
--- a/src/components/CustomPages/SK/SK022ShowPrint.js
+++ b/src/components/CustomPages/SK/SK022ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, showUserSign, showFileImg, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, showUserSign, showFileImg, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -91,7 +91,7 @@ class SK022ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -104,21 +104,12 @@ class SK022ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "隐患整改记录.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK024ShowPrint.js b/src/components/CustomPages/SK/SK024ShowPrint.js
index c07bc4e..3753f0d 100644
--- a/src/components/CustomPages/SK/SK024ShowPrint.js
+++ b/src/components/CustomPages/SK/SK024ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -83,7 +83,7 @@ class SK024ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -96,21 +96,12 @@ class SK024ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "延期整改申请.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK026ShowPrint.js b/src/components/CustomPages/SK/SK026ShowPrint.js
index a9fa8da..c9650ad 100644
--- a/src/components/CustomPages/SK/SK026ShowPrint.js
+++ b/src/components/CustomPages/SK/SK026ShowPrint.js
@@ -1,6 +1,6 @@
import { Button, Descriptions, Popconfirm, Row, Col, Form, Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -267,7 +267,7 @@ class SK026ShowPrint extends React.Component {
} else {
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
@@ -286,15 +286,6 @@ class SK026ShowPrint extends React.Component {
XLSX.writeFile(wb, "风险检查关联表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
showModalMeasure = (item) => {
this.setState({
showDetailMeasure: true,
@@ -443,7 +434,7 @@ class SK026ShowPrint extends React.Component {
/>
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK027ShowPrint.js b/src/components/CustomPages/SK/SK027ShowPrint.js
index 06bfb32..8fa4493 100644
--- a/src/components/CustomPages/SK/SK027ShowPrint.js
+++ b/src/components/CustomPages/SK/SK027ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Modal, Popconfirm, Row, Col, Form, Input, Select } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -76,7 +76,7 @@ class SK027ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -89,15 +89,6 @@ class SK027ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全检查汇总表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
showModalContent = (item, formCode) => {
const newtmpData = {
data: {
@@ -161,7 +152,7 @@ class SK027ShowPrint extends React.Component {
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK031ShowPrint.js b/src/components/CustomPages/SK/SK031ShowPrint.js
index cb03c8d..82ee5d6 100644
--- a/src/components/CustomPages/SK/SK031ShowPrint.js
+++ b/src/components/CustomPages/SK/SK031ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -67,7 +67,7 @@ class SK031ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -80,21 +80,12 @@ class SK031ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全风险辨识与评估计划.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK035CheckLibrary.js b/src/components/CustomPages/SK/SK035CheckLibrary.js
index 6e90d3b..6c7ff85 100644
--- a/src/components/CustomPages/SK/SK035CheckLibrary.js
+++ b/src/components/CustomPages/SK/SK035CheckLibrary.js
@@ -1,6 +1,6 @@
import { Button, Descriptions, Popconfirm, Row, Col, Form, Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -197,7 +197,7 @@ class SK035CheckLibrary extends React.Component {
} else {
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
@@ -220,15 +220,6 @@ class SK035CheckLibrary extends React.Component {
XLSX.writeFile(wb, "双控企业库.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
showModalContent = (item) => {
this.setState({
showDetailContent: true,
diff --git a/src/components/CustomPages/SK/SK035ShowPrint.js b/src/components/CustomPages/SK/SK035ShowPrint.js
index 2ad4f2d..798638a 100644
--- a/src/components/CustomPages/SK/SK035ShowPrint.js
+++ b/src/components/CustomPages/SK/SK035ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -71,7 +71,7 @@ class SK035ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -84,21 +84,12 @@ class SK035ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全风险辨识结果表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK037ShowPrint.js b/src/components/CustomPages/SK/SK037ShowPrint.js
index 431f242..efc41a6 100644
--- a/src/components/CustomPages/SK/SK037ShowPrint.js
+++ b/src/components/CustomPages/SK/SK037ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -72,7 +72,7 @@ class SK037ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -85,21 +85,12 @@ class SK037ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全风险辨识结果汇总表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK039ShowPrint.js b/src/components/CustomPages/SK/SK039ShowPrint.js
index 4f06c63..46eecd8 100644
--- a/src/components/CustomPages/SK/SK039ShowPrint.js
+++ b/src/components/CustomPages/SK/SK039ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -72,7 +72,7 @@ class SK039ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -85,21 +85,12 @@ class SK039ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全风险评估表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK041ShowPrint.js b/src/components/CustomPages/SK/SK041ShowPrint.js
index 8b4bcd1..c5314e0 100644
--- a/src/components/CustomPages/SK/SK041ShowPrint.js
+++ b/src/components/CustomPages/SK/SK041ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -72,7 +72,7 @@ class SK041ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -85,21 +85,12 @@ class SK041ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "安全风险评估汇总表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SK/SK043ShowPrint.js b/src/components/CustomPages/SK/SK043ShowPrint.js
index 3ba2bd3..ef236cd 100644
--- a/src/components/CustomPages/SK/SK043ShowPrint.js
+++ b/src/components/CustomPages/SK/SK043ShowPrint.js
@@ -1,6 +1,6 @@
import { Button, Descriptions, Popconfirm, Row, Col, Form, Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -61,7 +61,7 @@ class SK043ShowPrint extends React.Component {
} else {
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
@@ -80,15 +80,6 @@ class SK043ShowPrint extends React.Component {
XLSX.writeFile(wb, "双控基础库.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
diff --git a/src/components/CustomPages/SK/SK045ShowPrint.js b/src/components/CustomPages/SK/SK045ShowPrint.js
index e1d1de0..6204b63 100644
--- a/src/components/CustomPages/SK/SK045ShowPrint.js
+++ b/src/components/CustomPages/SK/SK045ShowPrint.js
@@ -1,6 +1,6 @@
import { Button, Descriptions, Popconfirm, Row, Col, Form, Modal, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import stylesStep from '../HI/StepForm.css';
import config from "../../../config";
@@ -65,7 +65,7 @@ class SK045ShowPrint extends React.Component {
} else {
that.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
//归档才显示打印和导出按钮
// if(ret.PRE_MEETING_STATUS==5){
// this.setState({ isFinished: 'inline' })
@@ -84,15 +84,6 @@ class SK045ShowPrint extends React.Component {
XLSX.writeFile(wb, "双控企业库.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
diff --git a/src/components/CustomPages/SK/SK080ShowPrint.js b/src/components/CustomPages/SK/SK080ShowPrint.js
index b34e5c4..b258520 100644
--- a/src/components/CustomPages/SK/SK080ShowPrint.js
+++ b/src/components/CustomPages/SK/SK080ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, showUserSign, showFileImg, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, showUserSign, showFileImg, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import config from "../../../config";
import XLSX from 'xlsx';
@@ -59,7 +59,7 @@ class SK080ShowPrint extends React.Component {
} else {
this.setState({ BtnAgreeDisplay: 'inline' })
}
- this.onClickApprove(false);
+ approveView(this, 'inline', false);
}
}
@@ -72,21 +72,12 @@ class SK080ShowPrint extends React.Component {
const wb = XLSX.utils.table_to_book(Table);
XLSX.writeFile(wb, "重大事故隐患治理销号表.xlsx")
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), param: this.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
render() {
const { data } = this.state;
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/utils/common.js b/src/utils/common.js
index d52a25d..a6f3d1d 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -1972,12 +1972,15 @@ export function getArryPropShow(arry, propPath) {
}
/****** 审批查看公共能方法 ******/
-export function approveView(that, appVisible) {
+export function approveView(that, BtnAgreeDisplay, appVisible) {
if (appVisible == null || appVisible == undefined) {
appVisible = true
}
+ if (BtnAgreeDisplay == null || BtnAgreeDisplay == undefined) {
+ BtnAgreeDisplay = 'inline'//inline none
+ }
const newtmpData = {
- data: { id: that.props.data.id, isShow: true, key: guid(), param: that.props.data.param, appVisible: appVisible, BtnAgreeDisplay: 'none', ORG_ID_HV: that.props.data.ORG_ID_HV },
+ data: { id: that.props.data.id, isShow: true, key: guid(), param: that.props.data.param, appVisible: appVisible, BtnAgreeDisplay: BtnAgreeDisplay, ORG_ID_HV: that.props.data.ORG_ID_HV },
formCode: 'PF123',
}
that.setState({