changeDetailJsy.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  1. import React, { Component } from "react";
  2. import { Form, Upload, Modal, Button, message, Select, Input } from "antd";
  3. import AgreeButton from "./agreeButton.js";
  4. import Rizhi from "./rizhi.js";
  5. import { getProcessStatusNew, changeColor } from "@/tools.js";
  6. import { shenghePeo } from "@/tools.js"
  7. import $ from "jquery/src/ajax";
  8. import tongguo from "../../../../../../image/tongguo.png";
  9. import quxiao from "../../../../../../image/quxiao.png";
  10. import ProAndCuiList from "./proAndCuiList.jsx";
  11. import "./xButton.less";
  12. // import ReactToPrint from "react-to-print";
  13. const FormItem = Form.Item;
  14. import Refund from "./refund.js"
  15. import ImgList from "../../../../common/imgList";
  16. import EnterpriseNameChange from "../../../../common/enterpriseNameChange";
  17. const { TextArea } = Input;
  18. const formItemLayout = {
  19. labelCol: { span: 8 },
  20. wrapperCol: { span: 14 }
  21. };
  22. const changeType = [
  23. {
  24. value: "0",
  25. key: "退单退款"
  26. },
  27. {
  28. value: "1",
  29. key: "项目及金额变更"
  30. },
  31. {
  32. value: "2",
  33. key: "仅项目变更"
  34. },
  35. {
  36. value: "3",
  37. key: "仅金额变更"
  38. },
  39. {
  40. value: "4",
  41. key: "重报"
  42. },
  43. {
  44. value: "5",
  45. key: "赠送"
  46. }
  47. ];
  48. const getChangeType = function (e) {
  49. if (e || e == 0) {
  50. let str = e.toString();
  51. let theType = "";
  52. changeType.map(function (item) {
  53. if (item.value == str) {
  54. theType = item.key;
  55. }
  56. });
  57. return theType;
  58. }
  59. };
  60. class Itemlist extends Component {
  61. constructor(props) {
  62. super(props);
  63. }
  64. render() {
  65. let pageData = this.props.pageData;
  66. return (
  67. <div className="clearfix">
  68. <Form.Item
  69. label={pageData.labelA}
  70. {...pageData.formItemLayoutA}
  71. className="half-item"
  72. >
  73. <p style={{ width: 350, wordWrap: "break-word" }}>
  74. {pageData.dataA}
  75. {pageData.labelA === '客户名称' ? <EnterpriseNameChange
  76. type='journal'
  77. style={{ marginLeft: 10 }}
  78. enterpriseId={this.props.orderUid}/> : null}
  79. </p>
  80. </Form.Item>
  81. <Form.Item
  82. label={pageData.labelB}
  83. {...pageData.formItemLayoutB}
  84. className="half-item"
  85. >
  86. <span>{pageData.dataB}</span>
  87. </Form.Item>
  88. </div>
  89. );
  90. }
  91. }
  92. class ChangeDetail extends Component {
  93. constructor(props) {
  94. super(props);
  95. this.state = {
  96. rotateDeg: 0,
  97. previewVisible: false,
  98. buttonStatus: true,
  99. changeType: 1,
  100. dataSource: [],
  101. reason: "",
  102. // 累计回收退票
  103. refundInvoice: 0,
  104. // 退票数组
  105. contactList: [],
  106. rejectState: 0,
  107. // 收款信息
  108. proceedsData: [],
  109. proceedsTotal: this.props.proceedsTotal,
  110. // 开票信息
  111. invoiceData: [],
  112. invoiceTotal: this.props.invoiceTotal,
  113. cost: 10,
  114. refund: 8,
  115. // 测试添加退票
  116. contactList: this.props.contactList,
  117. ContactsLists: [
  118. {
  119. title: "金额(万元)",
  120. dataIndex: "amount",
  121. key: "amount",
  122. render: (text, record) => {
  123. return (
  124. <div>
  125. 实际回收退票(万元)
  126. <Input
  127. value={record.amount}
  128. placeholder="请输入金额(必填项)"
  129. disabled={record.load}
  130. key={record.id}
  131. required="required"
  132. onChange={(e) => {
  133. record.amount = e.target.value;
  134. this.setState({ contactList: this.state.contactList });
  135. }}
  136. style={{ width: "120px" }}
  137. />
  138. </div>
  139. );
  140. },
  141. },
  142. {
  143. title: "时间",
  144. dataIndex: "createTimes",
  145. key: "createTimes",
  146. render: (text, record) => {
  147. return <div>{record.createTimes}</div>;
  148. },
  149. },
  150. ],
  151. };
  152. this.getOrgCodeUrl = this.getOrgCodeUrl.bind(this);
  153. this.changeButtonStatus = this.changeButtonStatus.bind(this);
  154. this.moneyOld = this.moneyOld.bind(this);
  155. this.rotate = this.rotate.bind(this);
  156. this.downImg = this.downImg.bind(this);
  157. this.upImg = this.upImg.bind(this);
  158. }
  159. getOrgCodeUrl(e) {
  160. this.setState({
  161. orgCodeUrl: e,
  162. });
  163. }
  164. changeButtonStatus() {
  165. this.setState({
  166. buttonStatus: !this.state.buttonStatus,
  167. });
  168. }
  169. downImg() {
  170. let num = 0;
  171. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  172. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  173. num = i;
  174. }
  175. }
  176. if (num == this.props.pictureUrl.length - 1) {
  177. return message.warning("已经是最后一张了哦");
  178. }
  179. this.state.previewImage = this.props.pictureUrl[num + 1].url;
  180. this.setState({
  181. previewImage: this.state.previewImage,
  182. rotateDeg: 0,
  183. });
  184. }
  185. upImg() {
  186. let num = 0;
  187. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  188. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  189. num = i;
  190. }
  191. }
  192. if (num == 0) {
  193. return message.warning("已经是第一张了哦");
  194. }
  195. this.state.previewImage = this.props.pictureUrl[num - 1].url;
  196. this.setState({
  197. previewImage: this.state.previewImage,
  198. rotateDeg: 0,
  199. });
  200. }
  201. rotate() {
  202. let rotateDeg = this.state.rotateDeg + 90;
  203. this.setState({
  204. rotateDeg,
  205. });
  206. }
  207. moneyOld(str, money) {
  208. if (money) {
  209. return (
  210. <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
  211. {str}(原合同金额{money}万元)
  212. </span>
  213. );
  214. } else {
  215. return (
  216. <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
  217. {str}
  218. </span>
  219. );
  220. }
  221. }
  222. render() {
  223. const pageData = [
  224. {
  225. labelA: "客户名称",
  226. formItemLayoutA: formItemLayout,
  227. dataA: this.props.data.userName,
  228. labelB: "合同编号",
  229. formItemLayoutB: formItemLayout,
  230. dataB: this.props.data.contractNo,
  231. },
  232. {
  233. labelA: "时间",
  234. formItemLayoutA: formItemLayout,
  235. dataA: this.props.data.createTimes,
  236. labelB: "发起人",
  237. formItemLayoutB: formItemLayout,
  238. dataB: this.props.data.applicant,
  239. },
  240. {
  241. labelA: "当前进度",
  242. formItemLayoutA: formItemLayout,
  243. // 当前是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示
  244. dataA:
  245. this.props.data.processState == 2 || this.props.data.processState == 3
  246. ? shenghePeo(
  247. this.props.data.processState == 2
  248. ? this.props.data.consultantExamine
  249. : this.props.data.managerExamine,
  250. this.props.data.processState
  251. )
  252. : getProcessStatusNew(
  253. this.props.data.processState,
  254. this.props.data.status
  255. ),
  256. labelB: "变更类型",
  257. formItemLayoutB: formItemLayout,
  258. dataB: getChangeType(this.props.data.type),
  259. },
  260. {
  261. labelA: "合同额(万元)",
  262. formItemLayoutA: formItemLayout,
  263. dataA: "***",
  264. labelB: "已收款(万元)",
  265. formItemLayoutB: formItemLayout,
  266. dataB: "***",
  267. },
  268. {
  269. labelA: "欠款(万元)",
  270. formItemLayoutA: formItemLayout,
  271. dataA: "***",
  272. labelB: "申请退款(万元)",
  273. formItemLayoutB: formItemLayout,
  274. dataB: "***",
  275. },
  276. {
  277. labelA: "变更原因",
  278. formItemLayoutA: formItemLayout,
  279. dataA: this.props.data.remarks,
  280. },
  281. ];
  282. const planData = [
  283. {
  284. labelA: "项目进度",
  285. formItemLayoutA: formItemLayout,
  286. dataA: this.props.data.projectState,
  287. labelB: "发生成本费用(万元)",
  288. formItemLayoutB: formItemLayout,
  289. dataB: "***",
  290. },
  291. {
  292. labelA: "备注",
  293. formItemLayoutA: formItemLayout,
  294. dataA: this.props.data.zxsRemarks,
  295. },
  296. ];
  297. const financeData = [
  298. {
  299. labelA: "收款时间",
  300. formItemLayoutA: formItemLayout,
  301. dataA: this.props.data.paymentTimes,
  302. labelB: "收款金额(万元)",
  303. formItemLayoutB: formItemLayout,
  304. dataB: "***",
  305. },
  306. {
  307. labelA: "开票时间",
  308. formItemLayoutA: formItemLayout,
  309. dataA: this.props.data.invoiceTimes,
  310. labelB: "已开票金额(万元)",
  311. formItemLayoutB: formItemLayout,
  312. dataB: "***",
  313. },
  314. {
  315. labelA: "发生成本(万元)",
  316. formItemLayoutA: formItemLayout,
  317. dataA: "***",
  318. labelB: "应退金额(万元)",
  319. formItemLayoutB: formItemLayout,
  320. dataB: "***",
  321. },
  322. {
  323. labelA: "补充资料/备注",
  324. formItemLayoutA: formItemLayout,
  325. dataA: this.props.data.cwRemarks,
  326. },
  327. ];
  328. const buttonData = [
  329. {
  330. name: "同意",
  331. title: "理由",
  332. placeholder: "请输入理由",
  333. type: "primary",
  334. status: 2,
  335. onChange: (value) => {
  336. this.setState({
  337. remarks: value,
  338. });
  339. },
  340. },
  341. {
  342. name: "拒绝",
  343. title: "理由",
  344. placeholder: "请输入理由",
  345. type: "danger",
  346. status: 3,
  347. onChange: (value) => {
  348. this.setState({
  349. remarks: value,
  350. });
  351. },
  352. },
  353. ];
  354. const orgCodeUrl = this.props.pictureUrl;
  355. const attachment = this.props.attachment
  356. return (
  357. <div className="clearfix changeDetail">
  358. <div
  359. className="clearfix"
  360. ref={(e) => {
  361. this.refs = e;
  362. }}
  363. >
  364. <div
  365. style={{
  366. borderRadius: "50%",
  367. width: 300,
  368. height: 300,
  369. position: "absolute",
  370. top: 230,
  371. left: 525,
  372. transform: "rotate(-5deg)",
  373. zIndex: 1,
  374. display:
  375. (this.props.data.processState == 7 ||
  376. this.props.data.processState == 8) &&
  377. this.props.data.status == 4
  378. ? "block"
  379. : "none",
  380. }}
  381. >
  382. {/* <span
  383. style={{
  384. fontSize: 29,
  385. position: "absolute",
  386. left: "50%",
  387. top: "50%",
  388. transform: "translate(-50%,-50%)",
  389. color: "red"
  390. }}
  391. >
  392. 通过
  393. </span> */}
  394. <img src={tongguo} style={{ width: "100%" }} />
  395. </div>
  396. <div
  397. style={{
  398. borderRadius: "50%",
  399. width: 300,
  400. height: 300,
  401. position: "absolute",
  402. top: 284,
  403. left: 586,
  404. transform: "rotate(-5deg)",
  405. zIndex: 1,
  406. display: this.props.data.status == 5 ? "block" : "none",
  407. }}
  408. >
  409. <img src={quxiao} style={{ width: "63%" }} />
  410. </div>
  411. <h2 style={{ textAlign: "center", marginBottom: 10 }}>
  412. 合同变更记录
  413. </h2>
  414. {pageData.map((item, index) => {
  415. return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid}/>;
  416. })}
  417. <Form.Item
  418. label="变更凭证"
  419. labelCol={{ span: 4 }}
  420. wrapperCol={{ span: 18 }}
  421. >
  422. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  423. <ImgList domId={this.props.domId ? this.props.domId : 'changeDetailJsy1'} fileList={orgCodeUrl} ItemWidth={'96px'}/>
  424. </div>
  425. <Modal
  426. maskClosable={false}
  427. footer={null}
  428. width={"50%"}
  429. visible={this.state.previewVisible}
  430. onCancel={() => {
  431. this.state.rotateDeg = 0;
  432. this.setState({
  433. previewVisible: false,
  434. rotateDeg: this.state.rotateDeg,
  435. });
  436. }}
  437. >
  438. <img
  439. alt=""
  440. style={{
  441. width: "100%",
  442. transform: `rotate(${this.state.rotateDeg}deg)`,
  443. }}
  444. src={this.state.previewImage || ""}
  445. />
  446. <Button
  447. onClick={this.rotate}
  448. style={{
  449. position: "relative",
  450. left: "50%",
  451. transform: "translateX(-50%)",
  452. }}
  453. >
  454. 旋转
  455. </Button>
  456. <Button
  457. onClick={this.upImg}
  458. style={{
  459. position: "absolute",
  460. left: -81,
  461. top: "50%",
  462. transform: "translateY(-50%)",
  463. }}
  464. >
  465. 上一张
  466. </Button>
  467. <Button
  468. onClick={this.downImg}
  469. style={{
  470. position: "absolute",
  471. right: -81,
  472. top: "50%",
  473. transform: "translateY(-50%)",
  474. }}
  475. >
  476. 下一张
  477. </Button>
  478. </Modal>
  479. <Rizhi changeId={this.props.id} />
  480. </Form.Item>
  481. {/* <ul>
  482. {this.props.data.consultantExamine.map((item, index) => {
  483. return (
  484. <li>
  485. )
  486. })}
  487. </ul> */}
  488. {/* <h2 style={{ textAlign: "center", marginBottom: 0 }}>变更日志</h2> */}
  489. <ul
  490. style={{
  491. width: "868px",
  492. overflow: "hidden",
  493. paddingLeft: "90px",
  494. position: "relative",
  495. bottom: "0px",
  496. }}
  497. >
  498. {/* <span>操作人:</span> */}
  499. {this.props.dataSource.map((item, index) => {
  500. if (item.status == 0) {
  501. item.status = "发起";
  502. } else if (item.status == 1) {
  503. item.status = "审核中";
  504. } else if (item.status == 2) {
  505. item.status = "通过";
  506. } else if (item.status == 3) {
  507. item.status = "驳回";
  508. } else if (item.status == 4) {
  509. item.status = "完成";
  510. }
  511. return (
  512. <li
  513. key={index}
  514. style={{
  515. width: "100%",
  516. height: "auto",
  517. wordBreak: "break-all",
  518. marginBottom: "10px",
  519. }}
  520. >
  521. {item.aname + ":" + "(" + item.status + ")" + item.remarks}
  522. </li>
  523. );
  524. })}
  525. </ul>
  526. <ProAndCuiList id={this.props.id} isZxs={true} />
  527. {/* {this.props.data.processState >= 3 ? (
  528. <div>
  529. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  530. 当前项目进度(咨询师填写)
  531. </h3>
  532. {planData.map((item, index) => {
  533. return <Itemlist key={index} pageData={item} />;
  534. })}
  535. </div>
  536. ) : (
  537. ""
  538. )} */}
  539. {/* {this.props.data.processState >= 5 ? (
  540. <div>
  541. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  542. 当前财务状态(财务填写)
  543. </h3>
  544. {financeData.map((item, index) => {
  545. return <Itemlist key={index} pageData={item} />;
  546. })}
  547. </div>
  548. ) : (
  549. ""
  550. )} */}
  551. {/* 完成审核,上传附件 */}
  552. <div style={{
  553. position: "relative",
  554. display:
  555. (this.props.data.processState == 7 ||
  556. this.props.data.processState == 8) &&
  557. this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6
  558. ? "block"
  559. : "none",
  560. marginTop: 10,
  561. }}
  562. >
  563. <hr
  564. style={{
  565. marginTop: 12,
  566. marginBottom: 10,
  567. backgroundColor: "black",
  568. height: 1,
  569. border: "none",
  570. }}
  571. />
  572. <h3
  573. style={{
  574. marginLeft: 20,
  575. fontWeight: 800,
  576. marginBottom: 10,
  577. display: "inline-block",
  578. }}
  579. >
  580. 完成审核,上传附件{" "}
  581. <span
  582. style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
  583. >
  584. (注:由营销员上传变更后附件,全变更流程完成。)
  585. </span>
  586. </h3>
  587. <div>
  588. <Form.Item
  589. label="变更附件"
  590. labelCol={{ span: 4 }}
  591. wrapperCol={{ span: 18 }}
  592. >
  593. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  594. { attachment.length > 0 ? <ImgList domId={this.props.domId+2 ? this.props.domId+2 : 'changeDetailJsy2'} fileList={attachment} ItemWidth={'96px'}/> :'无附件'}
  595. </div>
  596. <Modal
  597. maskClosable={false}
  598. footer={null}
  599. width={"50%"}
  600. visible={this.state.previewVisible}
  601. onCancel={() => {
  602. this.setState({ previewVisible: false, rotateDeg: 0 }, () => {
  603. // this.reset();
  604. });
  605. }}
  606. >
  607. <img
  608. alt=""
  609. style={{
  610. width: "100%",
  611. transform: `rotate(${this.state.rotateDeg}deg)`,
  612. }}
  613. src={this.state.previewImage || ""}
  614. />
  615. <Button
  616. onClick={this.rotate}
  617. style={{
  618. position: "relative",
  619. left: "50%",
  620. transform: "translateX(-50%)",
  621. }}
  622. >
  623. 旋转
  624. </Button>
  625. <Button
  626. onClick={this.upImg}
  627. style={{
  628. position: "absolute",
  629. left: -81,
  630. top: "50%",
  631. transform: "translateY(-50%)",
  632. }}
  633. >
  634. 上一张
  635. </Button>
  636. <Button
  637. onClick={this.downImg}
  638. style={{
  639. position: "absolute",
  640. right: -81,
  641. top: "50%",
  642. transform: "translateY(-50%)",
  643. }}
  644. >
  645. 下一张
  646. </Button>
  647. </Modal>
  648. {/* <Rizhi changeId={this.props.id} /> */}
  649. </Form.Item>
  650. </div>
  651. </div>
  652. <div
  653. style={{
  654. display:
  655. (this.props.data.processState == 7 ||
  656. this.props.data.processState == 8) &&
  657. this.props.data.status == 4 &&
  658. this.props.data.refundStatus
  659. ? "block"
  660. : "none",
  661. }}
  662. >
  663. <Refund data={this.props.data} id={this.props.id} />
  664. </div>
  665. </div>
  666. {this.props.processState === this.props.data.processState ? (
  667. <div
  668. style={{
  669. display: this.props.data.isExamine == 0 ? "block" : "none",
  670. }}
  671. >
  672. <div className="clearfix" style={{ marginBottom: "10px" }}>
  673. <FormItem
  674. style={{ height: "auto" }}
  675. labelCol={{ span: 4 }}
  676. wrapperCol={{ span: 18 }}
  677. label="备注"
  678. >
  679. <TextArea
  680. rows={4}
  681. placeholder="请输入备注信息"
  682. style={{ width: "95%" }}
  683. value={this.state.reason}
  684. onChange={(e) => {
  685. let reason = e.target.value;
  686. this.setState({ reason });
  687. }}
  688. />
  689. </FormItem>
  690. </div>
  691. <div
  692. className="clearfix"
  693. style={{ display: "flex", justifyContent: "space-around" }}
  694. >
  695. {buttonData.map((item, index) => {
  696. return (
  697. <AgreeButton
  698. data={item}
  699. key={index}
  700. backData={this.props.data}
  701. processState={this.props.processState}
  702. visible={this.changeButtonStatus}
  703. ajaxData={this.state}
  704. loadData={this.props.loadData}
  705. rejectState={this.state.rejectState}
  706. reason={this.state.reason}
  707. onCancel={this.props.onCancel}
  708. />
  709. );
  710. })}
  711. </div>
  712. <Select
  713. defaultValue="0"
  714. style={{
  715. width: 120,
  716. float: "left",
  717. position: "relative",
  718. bottom: "28px",
  719. right: "-600px",
  720. }}
  721. onChange={(val) => {
  722. this.setState({ rejectState: val });
  723. }}
  724. >
  725. <Option
  726. value="0"
  727. style={{
  728. display: this.props.processState >= 1 ? "block" : "none",
  729. }}
  730. >
  731. 营销员
  732. </Option>
  733. <Option
  734. value="1"
  735. style={{
  736. display: this.props.processState >= 2 ? "block" : "none",
  737. }}
  738. >
  739. 营销管理员
  740. </Option>
  741. <Option
  742. value="2"
  743. style={{
  744. display: this.props.processState >= 3 ? "block" : "none",
  745. }}
  746. >
  747. 咨询师
  748. </Option>
  749. <Option
  750. value="3"
  751. style={{
  752. display: this.props.processState >= 4 ? "block" : "none",
  753. }}
  754. >
  755. 咨询师经理
  756. </Option>
  757. <Option
  758. value="4"
  759. style={{
  760. display: this.props.processState >= 5 ? "block" : "none",
  761. }}
  762. >
  763. 咨询师总监
  764. </Option>
  765. <Option
  766. value="5"
  767. style={{
  768. display: this.props.processState >= 6 ? "block" : "none",
  769. }}
  770. >
  771. 财务专员(退单)
  772. </Option>
  773. <Option
  774. value="6"
  775. style={{
  776. display: this.props.processState >= 7 ? "block" : "none",
  777. }}
  778. >
  779. 财务总监
  780. </Option>
  781. <Option
  782. value="7"
  783. style={{
  784. display: this.props.processState >= 8 ? "block" : "none",
  785. }}
  786. >
  787. 总裁
  788. </Option>
  789. </Select>
  790. </div>
  791. ) : (
  792. ""
  793. )}
  794. {/* <ReactToPrint
  795. trigger={() => (
  796. <div className="clearfix">
  797. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  798. 打印
  799. </Button>
  800. </div>
  801. )}
  802. content={() => this.refs}
  803. /> */}
  804. </div>
  805. );
  806. }
  807. }
  808. export { ChangeDetail };