|
@@ -3,7 +3,7 @@ import { Form, Upload, Modal, Input, Button } from "antd";
|
|
|
import AgreeButton from "./agreeButton.js";
|
|
|
import Rizhi from "./rizhi.js";
|
|
|
import { getProcessStatusNew } from "@/tools.js";
|
|
|
-import ReactToPrint from "react-to-print";
|
|
|
+// import ReactToPrint from "react-to-print";
|
|
|
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
@@ -78,49 +78,6 @@ class Itemlist extends Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class ItemInput extends Component {
|
|
|
- constructor(props) {
|
|
|
- super(props);
|
|
|
- this.state = {
|
|
|
- valueA: "",
|
|
|
- valueB: ""
|
|
|
- };
|
|
|
- }
|
|
|
-
|
|
|
- render() {
|
|
|
- let pageData = this.props.pageData;
|
|
|
- return (
|
|
|
- <div className="clearfix">
|
|
|
- <Form.Item
|
|
|
- label={pageData.labelA}
|
|
|
- {...pageData.formItemLayoutA}
|
|
|
- className="half-item"
|
|
|
- >
|
|
|
- <Input
|
|
|
- value={this.state.valueA}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ valueA: e.target.value });
|
|
|
- pageData.onChangeA(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </Form.Item>
|
|
|
- <Form.Item
|
|
|
- label={pageData.labelB}
|
|
|
- {...pageData.formItemLayoutB}
|
|
|
- className="half-item"
|
|
|
- >
|
|
|
- <Input
|
|
|
- value={this.state.valueB}
|
|
|
- onChange={e => {
|
|
|
- this.setState({ valueB: e.target.value });
|
|
|
- pageData.onChangeB(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </Form.Item>
|
|
|
- </div>
|
|
|
- );
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
class ChangeDetail extends Component {
|
|
|
constructor(props) {
|
|
@@ -383,7 +340,7 @@ class ChangeDetail extends Component {
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
- <ReactToPrint
|
|
|
+ {/* <ReactToPrint
|
|
|
trigger={() => (
|
|
|
<div className="clearfix">
|
|
|
<Button type="primary" style={{ float: "right", marginTop: 10 }}>
|
|
@@ -392,7 +349,7 @@ class ChangeDetail extends Component {
|
|
|
</div>
|
|
|
)}
|
|
|
content={() => this.refs}
|
|
|
- />
|
|
|
+ /> */}
|
|
|
</div>
|
|
|
);
|
|
|
}
|