changeDetailJsjl.js 25 KB

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