changeDetailJszj.js 24 KB

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