changeDetailJsjl.js 25 KB

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