changeDetailJszj.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  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. }
  520. return (
  521. <li
  522. key={index}
  523. style={{
  524. width: "100%",
  525. height: "auto",
  526. wordBreak: "break-all",
  527. marginBottom: "10px",
  528. }}
  529. >
  530. {item.aname + ":" + "(" + item.status + ")" + item.remarks}
  531. </li>
  532. );
  533. })}
  534. </ul>
  535. <ProAndCuiList id={this.props.id} />
  536. <div className="clearfix">
  537. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  538. 收款情况
  539. </h3>
  540. <div style={{ marginLeft: "90px" }}>
  541. <ul>
  542. {(this.props.proceedsData.bill || []).map((item, index) => (
  543. <li key={index}>
  544. {item.payTime +
  545. " " +
  546. item.aName +
  547. " 收款:" +
  548. item.transactionAmount +
  549. "万元"}
  550. </li>
  551. ))}
  552. </ul>
  553. <div>收款总计:{this.props.proceedsTotal}万元</div>
  554. </div>
  555. <br />
  556. <div style={{ marginLeft: "90px" }}>
  557. <ul>
  558. {(this.props.proceedsData.invoice || []).map((item, index) => (
  559. <li key={index}>
  560. {item.createTime + " " + " 开票:" + item.amount + "万元"}
  561. </li>
  562. ))}
  563. </ul>
  564. <div>开票总计:{this.props.invoiceTotal}万元</div>
  565. </div>
  566. <p style={{ marginLeft: "90px", color: "red" }}>
  567. 系统预估 产生成本(万元):
  568. {this.props.data.estimateCost
  569. ? this.props.data.estimateCost
  570. : "0"}{" "}
  571. &nbsp;应退金额(万元):
  572. {this.props.data.estimateRefundable
  573. ? this.props.data.estimateRefundable
  574. : "0"}
  575. </p>
  576. </div>
  577. <div
  578. style={{
  579. display: this.props.data.processState > 5 ? "block" : "none",
  580. marginTop: '10px'
  581. }}
  582. >
  583. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  584. 当前财务状态(财务填写)
  585. </h3>
  586. {financeData.map((item, index) => {
  587. return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} />;
  588. })}
  589. </div>
  590. {/* {this.props.data.type === 0 ? (
  591. <div>
  592. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  593. 当前项目进度(咨询师经理填写)
  594. </h3>
  595. {planData.map((item, index) => {
  596. return <Itemlist key={index} pageData={item} />;
  597. })}
  598. </div>
  599. ) : (
  600. ""
  601. )} */}
  602. <div
  603. style={{
  604. display:
  605. (this.props.data.processState == 8 ||
  606. this.props.data.processState == 7) &&
  607. (this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6)
  608. ? "block"
  609. : "none",
  610. }}
  611. >
  612. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  613. 回收退票
  614. </h3>
  615. <Table
  616. pagination={false}
  617. bordered
  618. columns={this.state.ContactsLists}
  619. dataSource={this.state.contactList}
  620. />
  621. </div>
  622. {/* 完成审核,上传附件 */}
  623. <div style={{
  624. position: "relative",
  625. display:
  626. (this.props.data.processState == 7 ||
  627. this.props.data.processState == 8) &&
  628. this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6
  629. ? "block"
  630. : "none",
  631. marginTop: 10,
  632. }}
  633. >
  634. <hr
  635. style={{
  636. marginTop: 12,
  637. marginBottom: 10,
  638. backgroundColor: "black",
  639. height: 1,
  640. border: "none",
  641. }}
  642. />
  643. <h3
  644. style={{
  645. marginLeft: 20,
  646. fontWeight: 800,
  647. marginBottom: 10,
  648. display: "inline-block",
  649. }}
  650. >
  651. 完成审核,上传附件{" "}
  652. <span
  653. style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
  654. >
  655. (注:由营销员上传变更后附件,全变更流程完成。)
  656. </span>
  657. </h3>
  658. <div>
  659. <Form.Item
  660. label="变更附件"
  661. labelCol={{ span: 4 }}
  662. wrapperCol={{ span: 18 }}
  663. >
  664. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  665. {attachment.length > 0 ? <ImgList domId={this.props.domId + 2 ? this.props.domId + 2 : 'changeDetailCwjlqq2'} fileList={attachment} ItemWidth={'96px'} /> : '无附件'}
  666. </div>
  667. <Modal
  668. maskClosable={false}
  669. footer={null}
  670. width={"50%"}
  671. visible={this.state.previewVisible}
  672. onCancel={() => {
  673. this.setState({ previewVisible: false, rotateDeg: 0 }, () => {
  674. // this.reset();
  675. });
  676. }}
  677. >
  678. <img
  679. alt=""
  680. style={{
  681. width: "100%",
  682. transform: `rotate(${this.state.rotateDeg}deg)`,
  683. }}
  684. src={this.state.previewImage || ""}
  685. />
  686. <Button
  687. onClick={this.rotate}
  688. style={{
  689. position: "relative",
  690. left: "50%",
  691. transform: "translateX(-50%)",
  692. }}
  693. >
  694. 旋转
  695. </Button>
  696. <Button
  697. onClick={this.upImg}
  698. style={{
  699. position: "absolute",
  700. left: -81,
  701. top: "50%",
  702. transform: "translateY(-50%)",
  703. }}
  704. >
  705. 上一张
  706. </Button>
  707. <Button
  708. onClick={this.downImg}
  709. style={{
  710. position: "absolute",
  711. right: -81,
  712. top: "50%",
  713. transform: "translateY(-50%)",
  714. }}
  715. >
  716. 下一张
  717. </Button>
  718. </Modal>
  719. {/* <Rizhi changeId={this.props.id} /> */}
  720. </Form.Item>
  721. </div>
  722. </div>
  723. {/* {this.props.data.processState >= 4 ? (
  724. <div>
  725. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  726. 当前项目进度(咨询师经理填写)
  727. </h3>
  728. {planData.map((item, index) => {
  729. return <Itemlist key={index} pageData={item} />;
  730. })}
  731. </div>
  732. ) : (
  733. ""
  734. )} */}
  735. {/* {this.props.data.processState >= 5 ? (
  736. <div>
  737. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  738. 当前财务状态(财务填写)
  739. </h3>
  740. {financeData.map((item, index) => {
  741. return <Itemlist key={index} pageData={item} />;
  742. })}
  743. </div>
  744. ) : (
  745. ""
  746. )} */}
  747. <div
  748. style={{
  749. display:
  750. (this.props.data.processState == 7 ||
  751. this.props.data.processState == 8) &&
  752. this.props.data.status == 4 &&
  753. this.props.data.refundStatus
  754. ? "block"
  755. : "none",
  756. }}
  757. >
  758. <Refund data={this.props.data} id={this.props.id} />
  759. </div>
  760. </div>
  761. {this.props.data.processState === 4 &&
  762. (this.props.data.status == 1 || this.props.data.status == 3) ? (
  763. // this.state.buttonStatus ? (
  764. <div>
  765. <div style={{ marginBottom: 10 }}>
  766. <Form.Item
  767. label="备注"
  768. labelCol={{ span: 4 }}
  769. wrapperCol={{ span: 14 }}
  770. >
  771. <Input.TextArea
  772. value={this.state.reason}
  773. rows={4}
  774. placeholder="请输入备注"
  775. onChange={(e) => {
  776. let reason = e.target.value;
  777. this.setState({ reason });
  778. }}
  779. />
  780. </Form.Item>
  781. </div>
  782. <div
  783. className="clearfix"
  784. style={{ display: "flex", justifyContent: "space-around" }}
  785. >
  786. {buttonData.map((item, index) => {
  787. return (
  788. <AgreeButton
  789. data={item}
  790. key={index}
  791. backData={this.props.data}
  792. processState={this.props.processState}
  793. visible={this.changeButtonStatus}
  794. loadData={this.props.loadData}
  795. ajaxData={this.state}
  796. rejectState={this.state.rejectState}
  797. reason={this.state.reason}
  798. onCancel={this.props.onCancel}
  799. />
  800. );
  801. })}
  802. </div>
  803. <Select
  804. defaultValue="0"
  805. style={{
  806. width: 120,
  807. float: "left",
  808. position: "relative",
  809. bottom: "28px",
  810. right: "-600px",
  811. }}
  812. onChange={(val) => {
  813. this.setState({ rejectState: val });
  814. }}
  815. >
  816. <Option
  817. value="0"
  818. style={{
  819. display: this.props.processState >= 1 ? "block" : "none",
  820. }}
  821. >
  822. 营销员
  823. </Option>
  824. <Option
  825. value="1"
  826. style={{
  827. display: this.props.processState >= 2 ? "block" : "none",
  828. }}
  829. >
  830. 营销管理员
  831. </Option>
  832. <Option
  833. value="2"
  834. style={{
  835. display: this.props.processState >= 3 ? "block" : "none",
  836. }}
  837. >
  838. 咨询师
  839. </Option>
  840. <Option
  841. value="3"
  842. style={{
  843. display: this.props.processState >= 4 ? "block" : "none",
  844. }}
  845. >
  846. 咨询师经理
  847. </Option>
  848. <Option
  849. value="4"
  850. style={{
  851. display: this.props.processState >= 5 ? "block" : "none",
  852. }}
  853. >
  854. 咨询师总监
  855. </Option>
  856. <Option
  857. value="5"
  858. style={{
  859. display: this.props.processState >= 6 ? "block" : "none",
  860. }}
  861. >
  862. 财务专员(退单)
  863. </Option>
  864. <Option
  865. value="6"
  866. style={{
  867. display: this.props.processState >= 7 ? "block" : "none",
  868. }}
  869. >
  870. 财务总监
  871. </Option>
  872. <Option
  873. value="7"
  874. style={{
  875. display: this.props.processState >= 8 ? "block" : "none",
  876. }}
  877. >
  878. 总裁
  879. </Option>
  880. </Select>
  881. </div>
  882. ) : (
  883. // ) : (
  884. // ""
  885. // )
  886. ""
  887. )}
  888. {/* <ReactToPrint
  889. trigger={() => (
  890. <div className="clearfix">
  891. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  892. 打印
  893. </Button>
  894. </div>
  895. )}
  896. content={() => this.refs}
  897. /> */}
  898. </div>
  899. );
  900. }
  901. }
  902. export { ChangeDetail };