changeDetailYybz.js 23 KB

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