From 75ca2b7cb797b00ea84d73924a9cb0edf583aefc Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Wed, 13 May 2026 15:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AF=A6=E6=83=85=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=20demo=20=E4=BD=BF=E6=94=AF=E6=8C=81=20=E6=80=BB?= =?UTF-8?q?=E9=83=A8=E6=9F=A5=E7=9C=8B=E5=AD=90=E5=85=AC=E5=8F=B8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=90=8E=E5=86=8D=E6=9F=A5=E7=9C=8B=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/SE/SE009ShowPrint.js | 15 +++------------ src/components/CustomPages/SE/SE011ShowPrint.js | 15 +++------------ 2 files changed, 6 insertions(+), 24 deletions(-) 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