changeDetailJszj.js 28 KB

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