diff --git a/src/components/CustomPages/SE/SE009ShowPrint.js b/src/components/CustomPages/SE/SE009ShowPrint.js
index 1cbc193..e47f558 100644
--- a/src/components/CustomPages/SE/SE009ShowPrint.js
+++ b/src/components/CustomPages/SE/SE009ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, extendOrder } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, extendOrder, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import styles from '../../CustomPages/HI/StepForm.css';
import XLSX from 'xlsx';
@@ -77,7 +77,7 @@ class SE009ShowPrint extends React.Component {
onComplete: (ret) => {
if (ret) {
ret.Nav_DepTrainPlanDetail.sort((a, b) => { return a.MOON - b.MOON });
- this.onClickApprove(false);
+ approveView(this, false);
this.setState({ data: ret })
}
}
@@ -99,15 +99,6 @@ class SE009ShowPrint extends React.Component {
}
return ret.join('、');
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
returnModel(level) {
let str = '';
if (level == undefined) {
@@ -131,7 +122,7 @@ class SE009ShowPrint extends React.Component {
const { data } = this.state;
return
-
+
}
content={() => this.componentRef}
diff --git a/src/components/CustomPages/SE/SE011ShowPrint.js b/src/components/CustomPages/SE/SE011ShowPrint.js
index 7f07da5..2e1cd0e 100644
--- a/src/components/CustomPages/SE/SE011ShowPrint.js
+++ b/src/components/CustomPages/SE/SE011ShowPrint.js
@@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
import React from 'react';
-import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel } from "../../../utils/common";
+import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel, approveView } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import styles from '../../CustomPages/HI/StepForm.css';
import XLSX from 'xlsx';
@@ -54,7 +54,7 @@ class SE011ShowPrint extends React.Component {
if (this.props.data && this.props.data.loadDataDeal) {
this.props.data.loadDataDeal(1);
}
- this.onClickApprove(false);
+ approveView(this, false);
ret.Nav_YearTrainPlanDetail.sort((a, b) => { return a.MOON - b.MOON });
if (ret.STATUS == 30 && this.props.data.tableKey == "1") {
this.setState({ confirmBtn: 'inline' })
@@ -93,15 +93,6 @@ class SE011ShowPrint extends React.Component {
}
return ret.join('、');
}
- onClickApprove = (appVisible) => {
- const newtmpData = {
- data: { id: this.props.data.id, isShow: true, key: guid(), appVisible: appVisible, BtnAgreeDisplay: 'inline' },
- formCode: "PF123",
- }
- this.setState({
- tmpData: newtmpData,
- });
- }
returnModel(level) {
let str = '';
if (level == undefined) {
@@ -142,7 +133,7 @@ class SE011ShowPrint extends React.Component {
const { data } = this.state;
return
-
+
}
content={() => this.componentRef}