changeDetailJszj.js 24 KB

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