changeDetailJsjl.js 29 KB

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