changeDetailJsy.js 26 KB

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