changeDetailJsjl.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  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. <Upload
  429. className="demandDetailShow-upload"
  430. listType="picture-card"
  431. fileList={orgCodeUrl}
  432. onPreview={(file) => {
  433. this.setState({
  434. previewImage: file.url || file.thumbUrl,
  435. previewVisible: true,
  436. });
  437. }}
  438. />
  439. {/*<div style={{paddingTop:'10px',paddingBottom:'10px'}}>*/}
  440. {/* <ImgList fileList={orgCodeUrl} ItemWidth={'96px'}/>*/}
  441. {/*</div>*/}
  442. <Modal
  443. maskClosable={false}
  444. footer={null}
  445. width={"50%"}
  446. visible={this.state.previewVisible}
  447. onCancel={() => {
  448. this.state.rotateDeg = 0;
  449. this.setState({
  450. previewVisible: false,
  451. rotateDeg: this.state.rotateDeg,
  452. });
  453. }}
  454. >
  455. <img
  456. alt=""
  457. style={{
  458. width: "100%",
  459. transform: `rotate(${this.state.rotateDeg}deg)`,
  460. }}
  461. src={this.state.previewImage || ""}
  462. />
  463. <Button
  464. onClick={this.rotate}
  465. style={{
  466. position: "relative",
  467. left: "50%",
  468. transform: "translateX(-50%)",
  469. }}
  470. >
  471. 旋转
  472. </Button>
  473. <Button
  474. onClick={this.upImg}
  475. style={{
  476. position: "absolute",
  477. left: -81,
  478. top: "50%",
  479. transform: "translateY(-50%)",
  480. }}
  481. >
  482. 上一张
  483. </Button>
  484. <Button
  485. onClick={this.downImg}
  486. style={{
  487. position: "absolute",
  488. right: -81,
  489. top: "50%",
  490. transform: "translateY(-50%)",
  491. }}
  492. >
  493. 下一张
  494. </Button>
  495. </Modal>
  496. <Rizhi changeId={this.props.id} />
  497. </Form.Item>
  498. <ul
  499. style={{
  500. width: "868px",
  501. overflow: "hidden",
  502. paddingLeft: "90px",
  503. position: "relative",
  504. bottom: "0px",
  505. }}
  506. >
  507. {/* <span>操作人:</span> */}
  508. {this.props.dataSource.map((item, index) => {
  509. if (item.status == 0) {
  510. item.status = "发起";
  511. } else if (item.status == 1) {
  512. item.status = "审核中";
  513. } else if (item.status == 2) {
  514. item.status = "通过";
  515. } else if (item.status == 3) {
  516. item.status = "驳回";
  517. } else if (item.status == 4) {
  518. item.status = "完成";
  519. }
  520. return (
  521. <li
  522. key={index}
  523. style={{
  524. width: "100%",
  525. height: "auto",
  526. wordBreak: "break-all",
  527. marginBottom: "10px",
  528. }}
  529. >
  530. {item.aname + ":" + "(" + item.status + ")" + item.remarks}
  531. </li>
  532. );
  533. })}
  534. </ul>
  535. <ProAndCuiList id={this.props.id} />
  536. <div className="clearfix">
  537. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  538. 收款情况
  539. </h3>
  540. <div style={{ marginLeft: "90px" }}>
  541. <ul>
  542. {(this.props.proceedsData.bill || []).map((item, index) => (
  543. <li key={index}>
  544. {item.payTime +
  545. " " +
  546. item.aName +
  547. " 收款:" +
  548. item.transactionAmount +
  549. "万元"}
  550. </li>
  551. ))}
  552. </ul>
  553. <div>收款总计:{this.props.proceedsTotal}万元</div>
  554. </div>
  555. <br />
  556. <div style={{ marginLeft: "90px" }}>
  557. <ul>
  558. {(this.props.proceedsData.invoice || []).map((item, index) => (
  559. <li key={index}>
  560. {item.createTime + " " + " 开票:" + item.amount + "万元"}
  561. </li>
  562. ))}
  563. </ul>
  564. <div>开票总计:{this.props.invoiceTotal}万元</div>
  565. </div>
  566. <p style={{ marginLeft: "90px", color: "red" }}>
  567. 系统预估 产生成本(万元):
  568. {this.props.data.estimateCost
  569. ? this.props.data.estimateCost
  570. : "0"}{" "}
  571. &nbsp;应退金额(万元):
  572. {this.props.data.estimateRefundable
  573. ? this.props.data.estimateRefundable
  574. : "0"}
  575. </p>
  576. </div>
  577. {/* {this.props.data.type === 0 ? (
  578. <div>
  579. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  580. 当前项目进度(咨询师经理填写)
  581. </h3>
  582. {planData.map((item, index) => {
  583. return <Itemlist key={index} pageData={item} />;
  584. })}
  585. </div>
  586. ) : (
  587. ""
  588. )} */}
  589. <div
  590. style={{
  591. display:
  592. (this.props.data.processState == 8 ||
  593. this.props.data.processState == 7) &&
  594. (this.props.data.status == 2 || this.props.data.status == 4)
  595. ? "block"
  596. : "none",
  597. }}
  598. >
  599. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  600. 回收退票
  601. </h3>
  602. <Table
  603. size="middle"
  604. pagination={false}
  605. bordered
  606. columns={this.state.ContactsLists}
  607. dataSource={this.state.contactList}
  608. />
  609. </div>
  610. <div
  611. style={{
  612. display: this.props.data.processState > 5 ? "block" : "none",
  613. }}
  614. >
  615. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  616. 当前财务状态(财务填写)
  617. </h3>
  618. {financeData.map((item, index) => {
  619. return <Itemlist key={index} pageData={item} />;
  620. })}
  621. </div>
  622. {/*
  623. (
  624. <div>
  625. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  626. 当前项目进度(咨询师经理填写)
  627. </h3>
  628. {planData.map((item, index) => {
  629. return <Itemlist key={index} pageData={item} />;
  630. })}
  631. </div>
  632. )
  633. */}
  634. {/* {this.props.data.processState >= 4 ? (
  635. ""
  636. ) : (
  637. <div style={{ marginBottom: 10 }}>
  638. <div className="clearfix">
  639. <h3
  640. style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}
  641. >
  642. 当前项目进度(咨询师经理填写)
  643. </h3>
  644. <Form.Item
  645. className="half-item"
  646. label="项目进度"
  647. labelCol={{ span: 8 }}
  648. wrapperCol={{ span: 14 }}
  649. >
  650. <Input
  651. style={{ width: 160 }}
  652. value={this.state.projectState}
  653. placeholder="请输入项目进度"
  654. onChange={e => {
  655. this.setState({
  656. projectState: e.target.value
  657. });
  658. }}
  659. />
  660. </Form.Item>
  661. <Form.Item
  662. className="half-item"
  663. label="发生成本费用(万元)"
  664. labelCol={{ span: 8 }}
  665. wrapperCol={{ span: 14 }}
  666. >
  667. <Input
  668. style={{ width: 160 }}
  669. value={this.state.zxsCost}
  670. placeholder="请输入发生成本费用"
  671. onChange={e => {
  672. this.setState({
  673. zxsCost: e.target.value
  674. });
  675. }}
  676. />
  677. </Form.Item>
  678. </div>
  679. </div>
  680. )} */}
  681. {/* {this.props.data.processState >= 5 ? (
  682. <div>
  683. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  684. 当前财务状态(财务填写)
  685. </h3>
  686. {financeData.map((item, index) => {
  687. return <Itemlist key={index} pageData={item} />;
  688. })}
  689. </div>
  690. ) : (
  691. ""
  692. )} */}
  693. <div
  694. style={{
  695. display:
  696. (this.props.data.processState == 7 ||
  697. this.props.data.processState == 8) &&
  698. this.props.data.status == 4 &&
  699. this.props.data.refundStatus
  700. ? "block"
  701. : "none",
  702. }}
  703. >
  704. <Refund data={this.props.data} id={this.props.id} />
  705. </div>
  706. </div>
  707. {this.props.processState == this.props.data.processState ? (
  708. 1 ? (
  709. <div
  710. style={{
  711. display: this.props.data.isExamine == 0 ? "block" : "none",
  712. }}
  713. >
  714. <div style={{ marginBottom: "10px" }}>
  715. <Form.Item
  716. label="备注"
  717. labelCol={{ span: 4 }}
  718. wrapperCol={{ span: 14 }}
  719. >
  720. <Input.TextArea
  721. value={this.state.reason}
  722. rows={4}
  723. placeholder="请输入备注"
  724. onChange={(e) => {
  725. let reason = e.target.value;
  726. this.setState({ reason });
  727. }}
  728. />
  729. </Form.Item>
  730. </div>
  731. <div
  732. className="clearfix"
  733. style={{ display: "flex", justifyContent: "space-around" }}
  734. >
  735. {buttonData.map((item, index) => {
  736. return (
  737. <AgreeButton
  738. data={item}
  739. key={index}
  740. backData={this.props.data}
  741. processState={this.props.processState}
  742. visible={this.changeButtonStatus}
  743. loadData={this.props.loadData}
  744. reason={this.state.reason}
  745. ajaxData={this.state}
  746. rejectState={this.state.rejectState}
  747. onCancel={this.props.onCancel}
  748. />
  749. );
  750. })}
  751. </div>
  752. <Select
  753. defaultValue="0"
  754. style={{
  755. width: 120,
  756. float: "left",
  757. position: "relative",
  758. bottom: "28px",
  759. right: "-600px",
  760. }}
  761. onChange={(val) => {
  762. this.setState({ rejectState: val });
  763. }}
  764. >
  765. <Option
  766. value="0"
  767. style={{
  768. display: this.props.processState >= 1 ? "block" : "none",
  769. }}
  770. >
  771. 营销员
  772. </Option>
  773. <Option
  774. value="1"
  775. style={{
  776. display: this.props.processState >= 2 ? "block" : "none",
  777. }}
  778. >
  779. 营销管理员
  780. </Option>
  781. <Option
  782. value="2"
  783. style={{
  784. display: this.props.processState >= 3 ? "block" : "none",
  785. }}
  786. >
  787. 咨询师
  788. </Option>
  789. <Option
  790. value="3"
  791. style={{
  792. display: this.props.processState >= 4 ? "block" : "none",
  793. }}
  794. >
  795. 咨询师经理
  796. </Option>
  797. <Option
  798. value="4"
  799. style={{
  800. display: this.props.processState >= 5 ? "block" : "none",
  801. }}
  802. >
  803. 咨询师总监
  804. </Option>
  805. <Option
  806. value="5"
  807. style={{
  808. display: this.props.processState >= 6 ? "block" : "none",
  809. }}
  810. >
  811. 财务专员(退单)
  812. </Option>
  813. <Option
  814. value="6"
  815. style={{
  816. display: this.props.processState >= 7 ? "block" : "none",
  817. }}
  818. >
  819. 财务总监
  820. </Option>
  821. <Option
  822. value="7"
  823. style={{
  824. display: this.props.processState >= 8 ? "block" : "none",
  825. }}
  826. >
  827. 总裁
  828. </Option>
  829. </Select>
  830. </div>
  831. ) : (
  832. ""
  833. )
  834. ) : (
  835. ""
  836. )}
  837. {/* <ReactToPrint
  838. trigger={() => (
  839. <div className="clearfix">
  840. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  841. 打印
  842. </Button>
  843. </div>
  844. )}
  845. content={() => this.refs}
  846. /> */}
  847. </div>
  848. );
  849. }
  850. }
  851. export { ChangeDetail };