changeDetailJsy.js 25 KB

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