changeDetailJsy.js 25 KB

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