changeDetailJsjl.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  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(
  235. this.props.data.processState == 2
  236. ? this.props.data.consultantExamine
  237. : this.props.data.managerExamine,
  238. this.props.data.processState
  239. )
  240. : getProcessStatusNew(
  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: this.props.data.remarks,
  268. },
  269. ];
  270. const planData = [
  271. {
  272. labelA: "项目进度",
  273. formItemLayoutA: formItemLayout,
  274. dataA: this.props.data.projectState,
  275. onChangeA: (value) => {
  276. this.setState({
  277. projectState: value,
  278. });
  279. },
  280. labelB: "发生成本费用(万元)",
  281. formItemLayoutB: formItemLayout,
  282. dataB: this.props.data.zxsCost,
  283. onChangeB: (value) => {
  284. this.setState({
  285. zxsCost: value,
  286. });
  287. },
  288. },
  289. {
  290. labelA: "备注",
  291. formItemLayoutA: formItemLayout,
  292. dataA: this.props.data.zxsRemarks,
  293. onChangeA: (value) => {
  294. this.setState({
  295. zxsRemarks: value,
  296. });
  297. },
  298. },
  299. ];
  300. const financeData = [
  301. {
  302. labelA: "发生成本(万元)",
  303. formItemLayoutA: formItemLayout,
  304. dataA: this.props.data.cwCost,
  305. labelB: "应退金额(万元)",
  306. formItemLayoutB: formItemLayout,
  307. dataB: this.props.data.refundableAmount,
  308. },
  309. ];
  310. const buttonData = [
  311. {
  312. name: "同意",
  313. title: "理由",
  314. placeholder: "请输入理由",
  315. type: "primary",
  316. status: 2,
  317. onChange: (value) => {
  318. this.setState({
  319. remarks: value,
  320. });
  321. },
  322. },
  323. {
  324. name: "拒绝",
  325. title: "理由",
  326. placeholder: "请输入理由",
  327. type: "danger",
  328. status: 3,
  329. onChange: (value) => {
  330. this.setState({
  331. remarks: value,
  332. });
  333. },
  334. },
  335. ];
  336. const orgCodeUrl = this.props.pictureUrl;
  337. const attachment = this.props.attachment
  338. return (
  339. <div className="clearfix changeDetail">
  340. <div
  341. className="clearfix"
  342. ref={(e) => {
  343. this.refs = e;
  344. }}
  345. >
  346. <div
  347. style={{
  348. borderRadius: "50%",
  349. width: 300,
  350. height: 300,
  351. position: "absolute",
  352. top: 230,
  353. left: 525,
  354. transform: "rotate(-5deg)",
  355. zIndex: 1,
  356. display:
  357. (this.props.data.processState == 7 ||
  358. this.props.data.processState == 8) &&
  359. this.props.data.status == 4
  360. ? "block"
  361. : "none",
  362. }}
  363. >
  364. {/* <span
  365. style={{
  366. fontSize: 29,
  367. position: "absolute",
  368. left: "50%",
  369. top: "50%",
  370. transform: "translate(-50%,-50%)",
  371. color: "red"
  372. }}
  373. >
  374. 通过
  375. </span> */}
  376. <img src={tongguo} style={{ width: "100%" }} />
  377. </div>
  378. <div
  379. style={{
  380. borderRadius: "50%",
  381. width: 300,
  382. height: 300,
  383. position: "absolute",
  384. top: 284,
  385. left: 586,
  386. transform: "rotate(-5deg)",
  387. zIndex: 1,
  388. display: this.props.data.status == 5 ? "block" : "none",
  389. }}
  390. >
  391. <img src={quxiao} style={{ width: "63%" }} />
  392. </div>
  393. <h2 style={{ textAlign: "center", marginBottom: 10 }}>
  394. 合同变更记录
  395. </h2>
  396. {pageData.map((item, index) => {
  397. return <Itemlist key={index} pageData={item} />;
  398. })}
  399. <Form.Item
  400. label="变更凭证"
  401. labelCol={{ span: 4 }}
  402. wrapperCol={{ span: 18 }}
  403. >
  404. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  405. <ImgList domId={this.props.domId ? this.props.domId+'1' : 'changeDetailJsjl1'} fileList={orgCodeUrl} ItemWidth={'96px'}/>
  406. </div>
  407. <Modal
  408. maskClosable={false}
  409. footer={null}
  410. width={"50%"}
  411. visible={this.state.previewVisible}
  412. onCancel={() => {
  413. this.state.rotateDeg = 0;
  414. this.setState({
  415. previewVisible: false,
  416. rotateDeg: this.state.rotateDeg,
  417. });
  418. }}
  419. >
  420. <img
  421. alt=""
  422. style={{
  423. width: "100%",
  424. transform: `rotate(${this.state.rotateDeg}deg)`,
  425. }}
  426. src={this.state.previewImage || ""}
  427. />
  428. <Button
  429. onClick={this.rotate}
  430. style={{
  431. position: "relative",
  432. left: "50%",
  433. transform: "translateX(-50%)",
  434. }}
  435. >
  436. 旋转
  437. </Button>
  438. <Button
  439. onClick={this.upImg}
  440. style={{
  441. position: "absolute",
  442. left: -81,
  443. top: "50%",
  444. transform: "translateY(-50%)",
  445. }}
  446. >
  447. 上一张
  448. </Button>
  449. <Button
  450. onClick={this.downImg}
  451. style={{
  452. position: "absolute",
  453. right: -81,
  454. top: "50%",
  455. transform: "translateY(-50%)",
  456. }}
  457. >
  458. 下一张
  459. </Button>
  460. </Modal>
  461. <Rizhi changeId={this.props.id} />
  462. </Form.Item>
  463. {
  464. this.props.contractPictureUrl && this.props.contractPictureUrl.length != 0 &&
  465. <div className="clearfix">
  466. <Form.Item
  467. labelCol={{ span: 4 }}
  468. wrapperCol={{ span: 18 }}
  469. label="最新合同"
  470. >
  471. <div style={{ paddingTop: 10 }}>
  472. <ImgList
  473. fileList={
  474. this.props.contractPictureUrl
  475. }
  476. ItemWidth={"96px"}
  477. />
  478. </div>
  479. </Form.Item>
  480. </div>
  481. }
  482. <ul
  483. style={{
  484. width: "868px",
  485. overflow: "hidden",
  486. paddingLeft: "90px",
  487. position: "relative",
  488. bottom: "0px",
  489. }}
  490. >
  491. {/* <span>操作人:</span> */}
  492. {this.props.dataSource.map((item, index) => {
  493. if (item.status == 0) {
  494. item.status = "发起";
  495. } else if (item.status == 1) {
  496. item.status = "审核中";
  497. } else if (item.status == 2) {
  498. item.status = "通过";
  499. } else if (item.status == 3) {
  500. item.status = "驳回";
  501. } else if (item.status == 4) {
  502. item.status = "完成";
  503. }
  504. return (
  505. <li
  506. key={index}
  507. style={{
  508. width: "100%",
  509. height: "auto",
  510. wordBreak: "break-all",
  511. marginBottom: "10px",
  512. }}
  513. >
  514. {item.aname + ":" + "(" + item.status + ")" + item.remarks}
  515. </li>
  516. );
  517. })}
  518. </ul>
  519. <ProAndCuiList id={this.props.id} />
  520. <div className="clearfix">
  521. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  522. 收款情况
  523. </h3>
  524. <div style={{ marginLeft: "90px" }}>
  525. <ul>
  526. {(this.props.proceedsData.bill || []).map((item, index) => (
  527. <li key={index}>
  528. {item.payTime +
  529. " " +
  530. item.aName +
  531. " 收款:" +
  532. item.transactionAmount +
  533. "万元"}
  534. </li>
  535. ))}
  536. </ul>
  537. <div>收款总计:{this.props.proceedsTotal}万元</div>
  538. </div>
  539. <br />
  540. <div style={{ marginLeft: "90px" }}>
  541. <ul>
  542. {(this.props.proceedsData.invoice || []).map((item, index) => (
  543. <li key={index}>
  544. {item.createTime + " " + " 开票:" + item.amount + "万元"}
  545. </li>
  546. ))}
  547. </ul>
  548. <div>开票总计:{this.props.invoiceTotal}万元</div>
  549. </div>
  550. <p style={{ marginLeft: "90px", color: "red" }}>
  551. 系统预估 产生成本(万元):
  552. {this.props.data.estimateCost
  553. ? this.props.data.estimateCost
  554. : "0"}{" "}
  555. &nbsp;应退金额(万元):
  556. {this.props.data.estimateRefundable
  557. ? this.props.data.estimateRefundable
  558. : "0"}
  559. </p>
  560. </div>
  561. {/* 当前财务状态 */}
  562. <div
  563. style={{
  564. display: this.props.data.processState > 5 ? "block" : "none",
  565. marginTop:'10px'
  566. }}
  567. >
  568. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  569. 当前财务状态(财务填写)
  570. </h3>
  571. {financeData.map((item, index) => {
  572. return <Itemlist key={index} pageData={item} />;
  573. })}
  574. </div>
  575. {/* {this.props.data.type === 0 ? (
  576. <div>
  577. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  578. 当前项目进度(咨询师经理填写)
  579. </h3>
  580. {planData.map((item, index) => {
  581. return <Itemlist key={index} pageData={item} />;
  582. })}
  583. </div>
  584. ) : (
  585. ""
  586. )} */}
  587. {/* 回收退票 */}
  588. <div
  589. style={{
  590. display:
  591. (this.props.data.processState == 8 ||
  592. this.props.data.processState == 7) &&
  593. (this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6)
  594. ? "block"
  595. : "none",
  596. }}
  597. >
  598. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  599. 回收退票
  600. </h3>
  601. <Table
  602. size="middle"
  603. pagination={false}
  604. bordered
  605. columns={this.state.ContactsLists}
  606. dataSource={this.state.contactList}
  607. />
  608. </div>
  609. {/* 完成审核,上传附件 */}
  610. <div style={{
  611. position: "relative",
  612. display:
  613. (this.props.data.processState == 7 ||
  614. this.props.data.processState == 8) &&
  615. this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6
  616. ? "block"
  617. : "none",
  618. marginTop: 10,
  619. }}
  620. >
  621. <hr
  622. style={{
  623. marginTop: 12,
  624. marginBottom: 10,
  625. backgroundColor: "black",
  626. height: 1,
  627. border: "none",
  628. }}
  629. />
  630. <h3
  631. style={{
  632. marginLeft: 20,
  633. fontWeight: 800,
  634. marginBottom: 10,
  635. display: "inline-block",
  636. }}
  637. >
  638. 完成审核,上传附件{" "}
  639. <span
  640. style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
  641. >
  642. (注:由营销员上传变更后附件,全变更流程完成。)
  643. </span>
  644. </h3>
  645. <div>
  646. <Form.Item
  647. label="变更附件"
  648. labelCol={{ span: 4 }}
  649. wrapperCol={{ span: 18 }}
  650. >
  651. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  652. { attachment.length > 0 ? <ImgList domId={this.props.domId+2 ? this.props.domId+2 : 'changeDetailJsjl2'} fileList={attachment} ItemWidth={'96px'}/> :'无附件'}
  653. </div>
  654. <Modal
  655. maskClosable={false}
  656. footer={null}
  657. width={"50%"}
  658. visible={this.state.previewVisible}
  659. onCancel={() => {
  660. this.setState({ previewVisible: false, rotateDeg: 0 }, () => {
  661. // this.reset();
  662. });
  663. }}
  664. >
  665. <img
  666. alt=""
  667. style={{
  668. width: "100%",
  669. transform: `rotate(${this.state.rotateDeg}deg)`,
  670. }}
  671. src={this.state.previewImage || ""}
  672. />
  673. <Button
  674. onClick={this.rotate}
  675. style={{
  676. position: "relative",
  677. left: "50%",
  678. transform: "translateX(-50%)",
  679. }}
  680. >
  681. 旋转
  682. </Button>
  683. <Button
  684. onClick={this.upImg}
  685. style={{
  686. position: "absolute",
  687. left: -81,
  688. top: "50%",
  689. transform: "translateY(-50%)",
  690. }}
  691. >
  692. 上一张
  693. </Button>
  694. <Button
  695. onClick={this.downImg}
  696. style={{
  697. position: "absolute",
  698. right: -81,
  699. top: "50%",
  700. transform: "translateY(-50%)",
  701. }}
  702. >
  703. 下一张
  704. </Button>
  705. </Modal>
  706. {/* <Rizhi changeId={this.props.id} /> */}
  707. </Form.Item>
  708. </div>
  709. </div>
  710. {/*
  711. (
  712. <div>
  713. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  714. 当前项目进度(咨询师经理填写)
  715. </h3>
  716. {planData.map((item, index) => {
  717. return <Itemlist key={index} pageData={item} />;
  718. })}
  719. </div>
  720. )
  721. */}
  722. {/* {this.props.data.processState >= 4 ? (
  723. ""
  724. ) : (
  725. <div style={{ marginBottom: 10 }}>
  726. <div className="clearfix">
  727. <h3
  728. style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}
  729. >
  730. 当前项目进度(咨询师经理填写)
  731. </h3>
  732. <Form.Item
  733. className="half-item"
  734. label="项目进度"
  735. labelCol={{ span: 8 }}
  736. wrapperCol={{ span: 14 }}
  737. >
  738. <Input
  739. style={{ width: 160 }}
  740. value={this.state.projectState}
  741. placeholder="请输入项目进度"
  742. onChange={e => {
  743. this.setState({
  744. projectState: e.target.value
  745. });
  746. }}
  747. />
  748. </Form.Item>
  749. <Form.Item
  750. className="half-item"
  751. label="发生成本费用(万元)"
  752. labelCol={{ span: 8 }}
  753. wrapperCol={{ span: 14 }}
  754. >
  755. <Input
  756. style={{ width: 160 }}
  757. value={this.state.zxsCost}
  758. placeholder="请输入发生成本费用"
  759. onChange={e => {
  760. this.setState({
  761. zxsCost: e.target.value
  762. });
  763. }}
  764. />
  765. </Form.Item>
  766. </div>
  767. </div>
  768. )} */}
  769. {/* {this.props.data.processState >= 5 ? (
  770. <div>
  771. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  772. 当前财务状态(财务填写)
  773. </h3>
  774. {financeData.map((item, index) => {
  775. return <Itemlist key={index} pageData={item} />;
  776. })}
  777. </div>
  778. ) : (
  779. ""
  780. )} */}
  781. <div
  782. style={{
  783. display:
  784. (this.props.data.processState == 7 ||
  785. this.props.data.processState == 8) &&
  786. this.props.data.status == 4 &&
  787. this.props.data.refundStatus
  788. ? "block"
  789. : "none",
  790. }}
  791. >
  792. <Refund data={this.props.data} id={this.props.id} />
  793. </div>
  794. </div>
  795. {this.props.processState == this.props.data.processState ? (
  796. 1 ? (
  797. <div
  798. style={{
  799. display: this.props.data.isExamine == 0 ? "block" : "none",
  800. }}
  801. >
  802. <div style={{ marginBottom: "10px" }}>
  803. <Form.Item
  804. label="备注"
  805. labelCol={{ span: 4 }}
  806. wrapperCol={{ span: 14 }}
  807. >
  808. <Input.TextArea
  809. value={this.state.reason}
  810. rows={4}
  811. placeholder="请输入备注"
  812. onChange={(e) => {
  813. let reason = e.target.value;
  814. this.setState({ reason });
  815. }}
  816. />
  817. </Form.Item>
  818. </div>
  819. <div
  820. className="clearfix"
  821. style={{ display: "flex", justifyContent: "space-around" }}
  822. >
  823. {buttonData.map((item, index) => {
  824. return (
  825. <AgreeButton
  826. data={item}
  827. key={index}
  828. backData={this.props.data}
  829. processState={this.props.processState}
  830. visible={this.changeButtonStatus}
  831. loadData={this.props.loadData}
  832. reason={this.state.reason}
  833. ajaxData={this.state}
  834. rejectState={this.state.rejectState}
  835. onCancel={this.props.onCancel}
  836. />
  837. );
  838. })}
  839. </div>
  840. <Select
  841. defaultValue="0"
  842. style={{
  843. width: 120,
  844. float: "left",
  845. position: "relative",
  846. bottom: "28px",
  847. right: "-600px",
  848. }}
  849. onChange={(val) => {
  850. this.setState({ rejectState: val });
  851. }}
  852. >
  853. <Option
  854. value="0"
  855. style={{
  856. display: this.props.processState >= 1 ? "block" : "none",
  857. }}
  858. >
  859. 营销员
  860. </Option>
  861. <Option
  862. value="1"
  863. style={{
  864. display: this.props.processState >= 2 ? "block" : "none",
  865. }}
  866. >
  867. 营销管理员
  868. </Option>
  869. <Option
  870. value="2"
  871. style={{
  872. display: this.props.processState >= 3 ? "block" : "none",
  873. }}
  874. >
  875. 咨询师
  876. </Option>
  877. <Option
  878. value="3"
  879. style={{
  880. display: this.props.processState >= 4 ? "block" : "none",
  881. }}
  882. >
  883. 咨询师经理
  884. </Option>
  885. <Option
  886. value="4"
  887. style={{
  888. display: this.props.processState >= 5 ? "block" : "none",
  889. }}
  890. >
  891. 咨询师总监
  892. </Option>
  893. <Option
  894. value="5"
  895. style={{
  896. display: this.props.processState >= 6 ? "block" : "none",
  897. }}
  898. >
  899. 财务专员(退单)
  900. </Option>
  901. <Option
  902. value="6"
  903. style={{
  904. display: this.props.processState >= 7 ? "block" : "none",
  905. }}
  906. >
  907. 财务总监
  908. </Option>
  909. <Option
  910. value="7"
  911. style={{
  912. display: this.props.processState >= 8 ? "block" : "none",
  913. }}
  914. >
  915. 总裁
  916. </Option>
  917. </Select>
  918. </div>
  919. ) : (
  920. ""
  921. )
  922. ) : (
  923. ""
  924. )}
  925. {/* <ReactToPrint
  926. trigger={() => (
  927. <div className="clearfix">
  928. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  929. 打印
  930. </Button>
  931. </div>
  932. )}
  933. content={() => this.refs}
  934. /> */}
  935. </div>
  936. );
  937. }
  938. }
  939. export { ChangeDetail };