changeDetailJszj.js 23 KB

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